[PATCH 3 of 5] commands, i18n: avoid untranslated strings as message parameters
Wagner Bruna
wagner.bruna+mercurial at gmail.com
Mon Apr 20 20:02:42 CDT 2009
# HG changeset patch
# User Wagner Bruna <wbruna at yahoo.com>
# Date 1240270717 10800
# Node ID bdeb380a10dedd2e284e694f1e1b8d9fb11fd24f
# Parent 6dcf425cc2a634e87d2907b9dda4636b82cee35b
commands, i18n: avoid untranslated strings as message parameters
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -287,15 +287,21 @@
"""
def print_result(nodes, good):
displayer = cmdutil.show_changeset(ui, repo, {})
- transition = (good and "good" or "bad")
if len(nodes) == 1:
# narrowed it down to a single revision
- ui.write(_("The first %s revision is:\n") % transition)
+ if good:
+ ui.write(_("The first good revision is:\n"))
+ else:
+ ui.write(_("The first bad revision is:\n"))
displayer.show(repo[nodes[0]])
else:
# multiple possible revisions
- ui.write(_("Due to skipped revisions, the first "
- "%s revision could be any of:\n") % transition)
+ if good:
+ ui.write(_("Due to skipped revisions, the first "
+ "good revision could be any of:\n"))
+ else:
+ ui.write(_("Due to skipped revisions, the first "
+ "bad revision could be any of:\n"))
for n in nodes:
displayer.show(repo[n])
More information about the Mercurial-devel
mailing list