Mercurial > hg
changeset 11600:76454cbc11e4 stable
mark ui.warn strings for translation
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Fri, 16 Jul 2010 14:44:30 +0200 |
parents | 6fcc066c0c2c |
children | 4d9b4725acac ce95d8b87d22 |
files | mercurial/dispatch.py mercurial/repair.py mercurial/ui.py |
diffstat | 3 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dispatch.py Fri Jul 16 14:40:57 2010 +0200 +++ b/mercurial/dispatch.py Fri Jul 16 14:44:30 2010 +0200 @@ -478,7 +478,7 @@ raise args.insert(0, repo) elif rpath: - ui.warn("warning: --repository ignored\n") + ui.warn(_("warning: --repository ignored\n")) d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) return runcommand(lui, repo, cmd, fullargs, ui, options, d,
--- a/mercurial/repair.py Fri Jul 16 14:40:57 2010 +0200 +++ b/mercurial/repair.py Fri Jul 16 14:44:30 2010 +0200 @@ -150,9 +150,10 @@ os.unlink(chgrpfile) except: if backupfile: - ui.warn("strip failed, full bundle stored in '%s'\n" % backupfile) + ui.warn(_("strip failed, full bundle stored in '%s'\n") + % backupfile) elif saveheads: - ui.warn("strip failed, partial bundle stored in '%s'\n" + ui.warn(_("strip failed, partial bundle stored in '%s'\n") % chgrpfile) raise
--- a/mercurial/ui.py Fri Jul 16 14:40:57 2010 +0200 +++ b/mercurial/ui.py Fri Jul 16 14:44:30 2010 +0200 @@ -304,7 +304,7 @@ p = self.config('paths', loc) if p: if '%%' in p: - self.warn("(deprecated '%%' in path %s=%s from %s)\n" % + self.warn(_("(deprecated '%%' in path %s=%s from %s)\n") % (loc, p, self.configsource('paths', loc))) p = p.replace('%%', '%') p = util.expandpath(p)