aboutsummaryrefslogtreecommitdiffstats
path: root/bin/find_member
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/find_member
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/find_member')
-rwxr-xr-xbin/find_member14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/find_member b/bin/find_member
index a1701bf8..99e4ee60 100755
--- a/bin/find_member
+++ b/bin/find_member
@@ -64,7 +64,7 @@ import paths
from Mailman import Utils
from Mailman import MailList
from Mailman import Errors
-from Mailman.i18n import _
+from Mailman.i18n import C_
AS_MEMBER = 0x01
AS_OWNER = 0x02
@@ -76,7 +76,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)
@@ -94,7 +94,7 @@ def scanlists(options):
try:
mlist = MailList.MailList(listname, lock=0)
except Errors.MMListError:
- print _('No such list: %(listname)s')
+ print C_('No such list: %(listname)s')
continue
if options.owners:
owners = mlist.owner
@@ -156,12 +156,12 @@ def main():
pass
if not args:
- usage(1, _('Search regular expression required'))
+ usage(1, C_('Search regular expression required'))
options.regexps = args
if not options.listnames:
- print _('No lists to search')
+ print C_('No lists to search')
return
matches = scanlists(options)
@@ -170,13 +170,13 @@ def main():
for k in addrs:
hits = matches[k]
lists = hits.keys()
- print k, _('found in:')
+ print k, C_('found in:')
for name in lists:
aswhat = hits[name]
if aswhat & AS_MEMBER:
print ' ', name
if aswhat & AS_OWNER:
- print ' ', name, _('(as owner)')
+ print ' ', name, C_('(as owner)')