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/inject | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/inject') diff --git a/bin/inject b/bin/inject index 432c2922..fa91f5e3 100644 --- a/bin/inject +++ b/bin/inject @@ -48,7 +48,7 @@ import paths from Mailman import mm_cfg from Mailman import Utils from Mailman import Post -from Mailman.i18n import _ +from Mailman.i18n import C_ @@ -57,7 +57,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) @@ -81,14 +81,14 @@ def main(): elif opt in ('-q', '--queue'): qdir = os.path.join(mm_cfg.QUEUE_DIR, arg) if not os.path.isdir(qdir): - usage(1, _('Bad queue directory: %(qdir)s')) + usage(1, C_('Bad queue directory: %(qdir)s')) elif opt in ('-l', '--listname'): listname = arg.lower() if listname is None: - usage(1, _('A list name is required')) + usage(1, C_('A list name is required')) elif not Utils.list_exists(listname): - usage(1, _('No such list: %(listname)s')) + usage(1, C_('No such list: %(listname)s')) if len(args) == 0: # Use standard input -- cgit v1.2.3