mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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:
parent
f05ff4243c
commit
536e35fc32
@ -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"))
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user