aboutsummaryrefslogtreecommitdiffstats
path: root/bin/remove_members
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2016-02-27 15:21:12 -0800
committerMark Sapiro <mark@msapiro.net>2016-02-27 15:21:12 -0800
commit95385417e926517c13ee769ef915ce5710a515f2 (patch)
treea39eccce0b844476a3715f328ee6712a5d62640e /bin/remove_members
parent1833e1e51f4994d733c4ef3fca7c6ef7a4fd519e (diff)
parentb3e0912e4d982e53eccac906fad347e8f1792b97 (diff)
downloadmailman2-95385417e926517c13ee769ef915ce5710a515f2.tar.gz
mailman2-95385417e926517c13ee769ef915ce5710a515f2.tar.xz
mailman2-95385417e926517c13ee769ef915ce5710a515f2.zip
Fixed l10n to use correct charset for command-line scripts.
Diffstat (limited to 'bin/remove_members')
-rwxr-xr-xbin/remove_members14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/remove_members b/bin/remove_members
index a7b4ebb4..4fd7493c 100755
--- a/bin/remove_members
+++ b/bin/remove_members
@@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 1998-2005 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2016 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -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()