aboutsummaryrefslogtreecommitdiffstats
path: root/bin/list_members
diff options
context:
space:
mode:
authorYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2016-02-22 17:51:37 +0900
committerYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2016-02-22 17:51:37 +0900
commit6aaafb6c05840389f1dd9139da9694f3b43c57df (patch)
tree3ca127f0bd34ede1ff388fa529fffad522d424d8 /bin/list_members
parent3c78c57cc88877f701a935ce009efd39d31925e6 (diff)
downloadmailman2-6aaafb6c05840389f1dd9139da9694f3b43c57df.tar.gz
mailman2-6aaafb6c05840389f1dd9139da9694f3b43c57df.tar.xz
mailman2-6aaafb6c05840389f1dd9139da9694f3b43c57df.zip
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)
Diffstat (limited to 'bin/list_members')
-rwxr-xr-xbin/list_members20
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/list_members b/bin/list_members
index 8995acf2..72352e0b 100755
--- a/bin/list_members
+++ b/bin/list_members
@@ -81,7 +81,7 @@ from Mailman import Utils
from Mailman import MailList
from Mailman import Errors
from Mailman import MemberAdaptor
-from Mailman.i18n import _
+from Mailman.i18n import C_
from email.Utils import formataddr
@@ -109,7 +109,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)
@@ -195,7 +195,7 @@ def main():
if i >= 0:
why = opt[i+1:]
if why not in WHYCHOICES.keys():
- usage(1, _('Bad --nomail option: %(why)s'))
+ usage(1, C_('Bad --nomail option: %(why)s'))
elif opt == '-d':
digest = True
if args and args[0] in ('mime', 'plain'):
@@ -206,23 +206,23 @@ def main():
if i >= 0:
kind = opt[i+1:]
if kind not in ('mime', 'plain'):
- usage(1, _('Bad --digest option: %(kind)s'))
+ usage(1, C_('Bad --digest option: %(kind)s'))
elif opt in ('-m', '--moderated'):
moderatedonly = True
if nonmoderatedonly or invalidonly or unicodeonly:
- usage(1, _('Only one of -m, -M, -i or -u may be specified.'))
+ usage(1, C_('Only one of -m, -M, -i or -u may be specified.'))
elif opt in ('-M', '--non-moderated'):
nonmoderatedonly = True
if moderatedonly or invalidonly or unicodeonly:
- usage(1, _('Only one of -m, -M, -i or -u may be specified.'))
+ usage(1, C_('Only one of -m, -M, -i or -u may be specified.'))
elif opt in ('-i', '--invalid'):
invalidonly = True
if moderatedonly or nonmoderatedonly or unicodeonly:
- usage(1, _('Only one of -m, -M, -i or -u may be specified.'))
+ usage(1, C_('Only one of -m, -M, -i or -u may be specified.'))
elif opt in ('-u', '--unicode'):
unicodeonly = True
if moderatedonly or nonmoderatedonly or invalidonly:
- usage(1, _('Only one of -m, -M, -i or -u may be specified.'))
+ usage(1, C_('Only one of -m, -M, -i or -u may be specified.'))
else:
# No more options left, push the last one back on the list
args.insert(0, opt)
@@ -240,7 +240,7 @@ def main():
try:
fp = open(outfile, 'w')
except IOError:
- print >> sys.stderr, _('Could not open file for writing:'), outfile
+ print >> sys.stderr, C_('Could not open file for writing:'), outfile
sys.exit(1)
else:
fp = sys.stdout
@@ -248,7 +248,7 @@ def main():
try:
mlist = MailList.MailList(listname, lock=False)
except Errors.MMListError, e:
- print >> sys.stderr, _('No such list: %(listname)s')
+ print >> sys.stderr, C_('No such list: %(listname)s')
sys.exit(1)
# Get the lowercased member addresses