commands: mark strings for translation stable
authorMartin Geisler <mg@aragost.com>
Thu, 24 Feb 2011 15:35:22 +0100
branchstable
changeset 13470 64ce09e93aff
parent 13469 07a6460f829a
child 13471 bffa00360e13
commands: mark strings for translation
mercurial/commands.py
--- a/mercurial/commands.py	Thu Feb 24 03:13:48 2011 +0100
+++ b/mercurial/commands.py	Thu Feb 24 15:35:22 2011 +0100
@@ -1366,7 +1366,7 @@
 
     format = opts.get('format', 0)
     if format not in (0, 1):
-        raise util.Abort("unknown format %d" % format)
+        raise util.Abort(_("unknown format %d") % format)
 
     if not r:
         r = revlog.revlog(util.opener(os.getcwd(), audit=False), file_)
@@ -2279,7 +2279,7 @@
             rev = "tip"
         if num or branch or tags:
             raise util.Abort(
-                "can't query remote revision number, branch, or tags")
+                _("can't query remote revision number, branch, or tags"))
         output = [hexfunc(repo.lookup(rev))]
     elif not rev:
         ctx = repo[None]