aboutsummaryrefslogtreecommitdiffstats
path: root/bin/list_lists
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_lists
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_lists')
-rw-r--r--bin/list_lists10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/list_lists b/bin/list_lists
index f846e699..90923e2d 100644
--- a/bin/list_lists
+++ b/bin/list_lists
@@ -50,7 +50,7 @@ from Mailman import mm_cfg
from Mailman import MailList
from Mailman import Utils
from Mailman import Errors
-from Mailman.i18n import _
+from Mailman.i18n import C_
program = sys.argv[0]
@@ -59,7 +59,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)
@@ -110,18 +110,18 @@ def main():
longest = max(len(mlist.real_name), longest)
if not mlists and not bare:
- print _('No matching mailing lists found')
+ print C_('No matching mailing lists found')
return
if not bare:
- print len(mlists), _('matching mailing lists found:')
+ print len(mlists), C_('matching mailing lists found:')
format = '%%%ds - %%.%ds' % (longest, 77 - longest)
for mlist in mlists:
if bare:
print mlist.internal_name()
else:
- description = mlist.description or _('[no description available]')
+ description = mlist.description or C_('[no description available]')
print ' ', format % (mlist.real_name, description)