comparison hgext/mq.py @ 17893:4d1da97aa7e7 stable

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.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Wed, 31 Oct 2012 03:59:28 +0900
parents ba0a1701c81a
children 7f5dab94e48c
comparison
equal deleted inserted replaced
17892:ba0a1701c81a 17893:4d1da97aa7e7
3559 if a: 3559 if a:
3560 m.append(ui.label(_("%d applied"), 'qseries.applied') % a) 3560 m.append(ui.label(_("%d applied"), 'qseries.applied') % a)
3561 if u: 3561 if u:
3562 m.append(ui.label(_("%d unapplied"), 'qseries.unapplied') % u) 3562 m.append(ui.label(_("%d unapplied"), 'qseries.unapplied') % u)
3563 if m: 3563 if m:
3564 ui.write("mq: %s\n" % ', '.join(m)) 3564 # i18n: column positioning for "hg summary"
3565 ui.write(_("mq: %s\n") % ', '.join(m))
3565 else: 3566 else:
3566 # i18n: column positioning for "hg summary" 3567 # i18n: column positioning for "hg summary"
3567 ui.note(_("mq: (empty queue)\n")) 3568 ui.note(_("mq: (empty queue)\n"))
3568 return r 3569 return r
3569 3570