# HG changeset patch # User FUJIWARA Katsunori # Date 2012-10-30 18:59:28 # Node ID 4d1da97aa7e72b946e978ff21f7def84a85e4b3c # Parent ba0a1701c81a3aa01c72107f759e097822f03964 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. diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -3561,7 +3561,8 @@ def summary(orig, ui, repo, *args, **kwa 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")) diff --git a/tests/test-check-code-hg.t b/tests/test-check-code-hg.t --- a/tests/test-check-code-hg.t +++ b/tests/test-check-code-hg.t @@ -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