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/qrunner | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/qrunner') diff --git a/bin/qrunner b/bin/qrunner index 20fe830d..29bba0ff 100644 --- a/bin/qrunner +++ b/bin/qrunner @@ -78,7 +78,7 @@ import signal import paths from Mailman import mm_cfg -from Mailman.i18n import _ +from Mailman.i18n import C_ from Mailman.Logging.Syslog import syslog from Mailman.Logging.Utils import LogStdErr @@ -95,7 +95,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) @@ -175,8 +175,8 @@ def main(): name = runnername[:-len('Runner')] else: name = runnername - print _('%(name)s runs the %(runnername)s qrunner') - print _('All runs all the above qrunners') + print C_('%(name)s runs the %(runnername)s qrunner') + print C_('All runs all the above qrunners') sys.exit(0) elif opt in ('-o', '--once'): once = 1 @@ -212,7 +212,7 @@ def main(): if len(args) <> 0: usage(1) if len(runners) == 0: - usage(1, _('No runner name given.')) + usage(1, C_('No runner name given.')) # Before we startup qrunners, we redirect the stderr to mailman syslog. # We assume !AS_SUBPROC is running for debugging purpose and don't -- cgit v1.2.3