[PATCH 16 of 17] mark strings for translation in record extension

Martin Geisler mg at daimi.au.dk
Sat Aug 23 20:55:32 UTC 2008


# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1219523218 -7200
# Node ID ff74e656bd8be89305f7f2710e53799469299733
# Parent  8e270acaa6718de6af8fe1e0c2f72a6424909efb
mark strings for translation in record extension

diff -r 8e270acaa671 -r ff74e656bd8b hgext/record.py
--- a/hgext/record.py	Sat Aug 23 22:26:58 2008 +0200
+++ b/hgext/record.py	Sat Aug 23 22:26:58 2008 +0200
@@ -450,7 +450,7 @@
                 fd, tmpname = tempfile.mkstemp(prefix=f.replace('/', '_')+'.',
                                                dir=backupdir)
                 os.close(fd)
-                ui.debug('backup %r as %r\n' % (f, tmpname))
+                ui.debug(_('backup %r as %r\n') % (f, tmpname))
                 util.copyfile(repo.wjoin(f), tmpname)
                 backups[f] = tmpname
 
@@ -467,7 +467,7 @@
 
             # 3b. (apply)
             if dopatch:
-                ui.debug('applying patch\n')
+                ui.debug(_('applying patch\n'))
                 ui.debug(fp.getvalue())
                 patch.internalpatch(fp, ui, 1, repo.root)
             del fp
@@ -489,7 +489,7 @@
             # 5. finally restore backed-up files
             try:
                 for realname, tmpname in backups.iteritems():
-                    ui.debug('restoring %r to %r\n' % (tmpname, realname))
+                    ui.debug(_('restoring %r to %r\n') % (tmpname, realname))
                     util.copyfile(tmpname, repo.wjoin(realname))
                     os.unlink(tmpname)
                 os.rmdir(backupdir)



More information about the Mercurial-devel mailing list