Mercurial > hg
changeset 12134:26d86a6cf2af stable
dagparser: translate and lowercase error messages
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Mon, 30 Aug 2010 17:17:20 +0200 |
parents | b046b90c4ae5 |
children | a55e3c50868f c407b4ca666e |
files | mercurial/dagparser.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dagparser.py Mon Aug 30 17:11:51 2010 +0200 +++ b/mercurial/dagparser.py Mon Aug 30 17:17:20 2010 +0200 @@ -268,7 +268,7 @@ s += c i += 1 c = nextch() - raise util.Abort("invalid character in dag description: %s..." % s) + raise util.Abort(_("invalid character in dag description: %s...") % s) def dagtextlines(events, addspaces=True, @@ -296,14 +296,14 @@ # sanity check if r != wantr: - raise util.Abort("Expected id %i, got %i" % (wantr, r)) + raise util.Abort(_("expected id %i, got %i") % (wantr, r)) if not ps: ps = [-1] else: for p in ps: if p >= r: - raise util.Abort("Parent id %i is larger than " - "current id %i" % (p, r)) + raise util.Abort(_("parent id %i is larger than " + "current id %i") % (p, r)) wantr += 1 # new root?