aboutsummaryrefslogtreecommitdiffstats
path: root/bin/list_lists
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/list_lists
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/list_lists')
-rw-r--r--bin/list_lists12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/list_lists b/bin/list_lists
index f846e699..9c941958 100644
--- a/bin/list_lists
+++ b/bin/list_lists
@@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 1998-2012 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
@@ -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)