diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2016-02-22 17:51:37 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2016-02-22 17:51:37 +0900 |
commit | 6aaafb6c05840389f1dd9139da9694f3b43c57df (patch) | |
tree | 3ca127f0bd34ede1ff388fa529fffad522d424d8 /bin/remove_members | |
parent | 3c78c57cc88877f701a935ce009efd39d31925e6 (diff) | |
download | mailman2-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/remove_members')
-rwxr-xr-x | bin/remove_members | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/remove_members b/bin/remove_members index a7b4ebb4..33aa6a2b 100755 --- a/bin/remove_members +++ b/bin/remove_members @@ -66,7 +66,7 @@ import paths from Mailman import MailList from Mailman import Utils from Mailman import Errors -from Mailman.i18n import _ +from Mailman.i18n import C_ try: True, False @@ -81,7 +81,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) @@ -153,14 +153,14 @@ def main(): try: addresses = addresses + ReadFile(filename) except IOError: - print _('Could not open file for reading: %(filename)s.') + print C_('Could not open file for reading: %(filename)s.') for listname in listnames: try: # open locked mlist = MailList.MailList(listname) except Errors.MMListError: - print _('Error opening list %(listname)s... skipping.') + print C_('Error opening list %(listname)s... skipping.') continue if all: @@ -170,12 +170,12 @@ def main(): for addr in addresses: if not mlist.isMember(addr): if not alllists: - print _('No such member: %(addr)s') + print C_('No such member: %(addr)s') continue mlist.ApprovedDeleteMember(addr, 'bin/remove_members', admin_notif, userack) if alllists: - print _("User `%(addr)s' removed from list: %(listname)s.") + print C_("User `%(addr)s' removed from list: %(listname)s.") mlist.Save() finally: mlist.Unlock() |