changeset 6965:98abbcf9fbdf

i18n: mark strings for translation in record extension
author Martin Geisler <mg@daimi.au.dk>
date Sun, 31 Aug 2008 16:12:03 +0200
parents b3239badc711
children 057ced2b8543
files hgext/record.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/record.py	Sun Aug 31 16:12:03 2008 +0200
+++ b/hgext/record.py	Sun Aug 31 16:12:03 2008 +0200
@@ -452,7 +452,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
 
@@ -470,7 +470,7 @@
             # 3b. (apply)
             if dopatch:
                 try:
-                    ui.debug('applying patch\n')
+                    ui.debug(_('applying patch\n'))
                     ui.debug(fp.getvalue())
                     patch.internalpatch(fp, ui, 1, repo.root)
                 except patch.PatchError, err:
@@ -498,7 +498,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)