# HG changeset patch # User Martin Geisler # Date 2008-08-31 14:12:03 # Node ID 98abbcf9fbdfc98c2b9c6f7f4159b8cd9409fecf # Parent b3239badc71156a06ac56779af76c8778e45adbf i18n: mark strings for translation in record extension diff --git a/hgext/record.py b/hgext/record.py --- a/hgext/record.py +++ b/hgext/record.py @@ -452,7 +452,7 @@ def dorecord(ui, repo, committer, *pats, 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 @@ def dorecord(ui, repo, committer, *pats, # 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 @@ def dorecord(ui, repo, committer, *pats, # 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)