From 6aaafb6c05840389f1dd9139da9694f3b43c57df Mon Sep 17 00:00:00 2001 From: Yasuhito FUTATSUKI at POEM Date: Mon, 22 Feb 2016 17:51:37 +0900 Subject: Importing locale patch for command line utils, from RHEL6 rpm source (for -japan-poem, originally imported from 2.1.12-18 package for RHEL6 rpm source) --- bin/genaliases | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/genaliases') diff --git a/bin/genaliases b/bin/genaliases index 77bc2907..c49cba61 100644 --- a/bin/genaliases +++ b/bin/genaliases @@ -40,7 +40,7 @@ import paths # path hacking from Mailman import mm_cfg from Mailman import Utils from Mailman import MailList -from Mailman.i18n import _ +from Mailman.i18n import C_ try: True, False @@ -55,7 +55,7 @@ def usage(code, msg=''): fd = sys.stderr else: fd = sys.stdout - print >> fd, _(__doc__) + print >> fd, C_(__doc__) if msg: print >> fd, msg sys.exit(code) -- cgit v1.2.3 From e7519290ad288df840bc86d8dcaea524407df964 Mon Sep 17 00:00:00 2001 From: Yasuhito FUTATSUKI at POEM Date: Mon, 22 Feb 2016 20:06:27 +0900 Subject: * add option to pick up C_() texts to make potfile * revise command line utils _()/C_() usage (not tested at all) --- bin/genaliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/genaliases') diff --git a/bin/genaliases b/bin/genaliases index c49cba61..f9ff707a 100644 --- a/bin/genaliases +++ b/bin/genaliases @@ -81,7 +81,7 @@ def main(): if not mm_cfg.MTA: mta = repr(mm_cfg.MTA) - usage(2, _( + usage(2, C_( "genaliases can't do anything useful with mm_cfg.MTA = %(mta)s." )) -- cgit v1.2.3