diff hgext/convert/convcmd.py @ 6913:580d5e6bfc1f

move % out of translatable strings The translators need to see the raw format string, not the result of using the format string.
author Martin Geisler <mg@daimi.au.dk>
date Sat, 16 Aug 2008 14:46:56 +0200
parents c9b8d2565b92
children 12472a240398
line wrap: on
line diff
--- a/hgext/convert/convcmd.py	Tue Aug 12 13:45:48 2008 +0200
+++ b/hgext/convert/convcmd.py	Sat Aug 16 14:46:56 2008 +0200
@@ -52,8 +52,8 @@
             exceptions.append(inst)
     if not ui.quiet:
         for inst in exceptions:
-            ui.write(_("%s\n") % inst)
-    raise util.Abort('%s: unknown repository type' % path)
+            ui.write("%s\n" % inst)
+    raise util.Abort(_('%s: unknown repository type') % path)
 
 def convertsink(ui, path, type):
     for name, sink in sink_converters:
@@ -62,7 +62,7 @@
                 return sink(ui, path)
         except NoRepo, inst:
             ui.note(_("convert: %s\n") % inst)
-    raise util.Abort('%s: unknown repository type' % path)
+    raise util.Abort(_('%s: unknown repository type') % path)
 
 class converter(object):
     def __init__(self, ui, source, dest, revmapfile, opts):
@@ -274,7 +274,7 @@
                 # tolocal() because util._encoding conver() use it as
                 # 'utf-8'
                 self.ui.status("%d %s\n" % (num, recode(desc)))
-                self.ui.note(_("source: %s\n" % recode(c)))
+                self.ui.note(_("source: %s\n") % recode(c))
                 self.copy(c)
 
             tags = self.source.gettags()