i18n: make column positioning message of MQ summary output translatable

Before this patch, one of column positioning messages of MQ summary
output is not translatable, and patches are always listed up at fixed
column position like below, when patch queue is not empty:

    mq:     1 applied, 1 unapplied

But column positioning messages for other summarized information are
translatable, so other information may be displayed at different
column position on non-English locale environments.

This patch makes column positioning message of MQ summary output
translatable.
This commit is contained in:
FUJIWARA Katsunori 2012-10-31 03:59:28 +09:00
parent f05ff4243c
commit 536e35fc32
2 changed files with 2 additions and 4 deletions

View File

@ -3561,7 +3561,8 @@ def summary(orig, ui, repo, *args, **kwargs):
if u:
m.append(ui.label(_("%d unapplied"), 'qseries.unapplied') % u)
if m:
ui.write("mq: %s\n" % ', '.join(m))
# i18n: column positioning for "hg summary"
ui.write(_("mq: %s\n") % ', '.join(m))
else:
# i18n: column positioning for "hg summary"
ui.note(_("mq: (empty queue)\n"))

View File

@ -62,9 +62,6 @@
hgext/hgk.py:0:
> ui.write("tree %s\n" % short(ctx.changeset()[0]))
warning: unwrapped ui message
hgext/mq.py:0:
> ui.write("mq: %s\n" % ', '.join(m))
warning: unwrapped ui message
hgext/patchbomb.py:0:
> ui.write('Subject: %s\n' % subj)
warning: unwrapped ui message