[PATCH 08 of 17] mark strings for translation in extdiff extension

Martin Geisler mg at daimi.au.dk
Sat Aug 23 15:55:24 CDT 2008


# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1219523218 -7200
# Node ID a7a6a0a25c8a79034a5138ea0f03c8bbbd1d1d53
# Parent  0901b6e148e0357329996a29fd741617a81ea1f5
mark strings for translation in extdiff extension

diff -r 0901b6e148e0 -r a7a6a0a25c8a hgext/extdiff.py
--- a/hgext/extdiff.py	Sat Aug 23 22:26:58 2008 +0200
+++ b/hgext/extdiff.py	Sat Aug 23 22:26:58 2008 +0200
@@ -164,13 +164,13 @@
         cmdline = ('%s %s %s %s' %
                    (util.shellquote(diffcmd), ' '.join(diffopts),
                     util.shellquote(dir1), util.shellquote(dir2)))
-        ui.debug('running %r in %s\n' % (cmdline, tmproot))
+        ui.debug(_('running %r in %s\n') % (cmdline, tmproot))
         util.system(cmdline, cwd=tmproot)
 
         for copy_fn, working_fn, mtime in fns_and_mtime:
             if os.path.getmtime(copy_fn) != mtime:
-                ui.debug('File changed while diffing. '
-                         'Overwriting: %s (src: %s)\n' % (working_fn, copy_fn))
+                ui.debug(_('File changed while diffing. '
+                         'Overwriting: %s (src: %s)\n') % (working_fn, copy_fn))
                 util.copyfile(copy_fn, working_fn)
 
         return 1


More information about the Mercurial-devel mailing list