dispatch: translate alias debugging messages stable
authorDavid Soria Parra <dsp@php.net>
Tue, 21 Jun 2011 13:24:19 +0200
branchstable
changeset 14702 1ec8bd909ac3
parent 14701 4b93bd041772
child 14703 0e64286760d5
child 14704 b24d596fcd25
dispatch: translate alias debugging messages
mercurial/dispatch.py
--- a/mercurial/dispatch.py	Tue Jun 21 00:17:52 2011 +0200
+++ b/mercurial/dispatch.py	Tue Jun 21 13:24:19 2011 +0200
@@ -333,7 +333,7 @@
 
     def __call__(self, ui, *args, **opts):
         if self.shadows:
-            ui.debug("alias '%s' shadows command '%s'\n" %
+            ui.debug(_("alias '%s' shadows command '%s'\n") %
                      (self.name, self.cmdname))
 
         if hasattr(self, 'shell'):
@@ -343,7 +343,7 @@
                 util.checksignature(self.fn)(ui, *args, **opts)
             except error.SignatureError:
                 args = ' '.join([self.cmdname] + self.args)
-                ui.debug("alias '%s' expands to '%s'\n" % (self.name, args))
+                ui.debug(_("alias '%s' expands to '%s'\n") % (self.name, args))
                 raise
 
 def addaliases(ui, cmdtable):