diff options
author | Mark Sapiro <mark@msapiro.net> | 2016-02-27 15:21:12 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2016-02-27 15:21:12 -0800 |
commit | 95385417e926517c13ee769ef915ce5710a515f2 (patch) | |
tree | a39eccce0b844476a3715f328ee6712a5d62640e /bin/discard | |
parent | 1833e1e51f4994d733c4ef3fca7c6ef7a4fd519e (diff) | |
parent | b3e0912e4d982e53eccac906fad347e8f1792b97 (diff) | |
download | mailman2-95385417e926517c13ee769ef915ce5710a515f2.tar.gz mailman2-95385417e926517c13ee769ef915ce5710a515f2.tar.xz mailman2-95385417e926517c13ee769ef915ce5710a515f2.zip |
Fixed l10n to use correct charset for command-line scripts.
Diffstat (limited to 'bin/discard')
-rw-r--r-- | bin/discard | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/bin/discard b/bin/discard index c3019844..7a9b890b 100644 --- a/bin/discard +++ b/bin/discard @@ -1,6 +1,6 @@ #! @PYTHON@ # -# Copyright (C) 2003 by the Free Software Foundation, Inc. +# Copyright (C) 2003-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 @@ -41,7 +41,7 @@ import getopt import paths from Mailman import mm_cfg from Mailman.MailList import MailList -from Mailman.i18n import _ +from Mailman.i18n import C_ try: True, False @@ -58,7 +58,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) @@ -80,7 +80,7 @@ def main(): files = args if not files: - print _('Nothing to do.') + print C_('Nothing to do.') # Mapping from listnames to sequence of request ids discards = {} @@ -91,13 +91,13 @@ def main(): basename = os.path.basename(f) mo = cre.match(basename) if not mo: - print >> sys.stderr, _('Ignoring non-held message: %(f)s') + print >> sys.stderr, C_('Ignoring non-held message: %(f)s') continue listname, id = mo.group('listname', 'id') try: id = int(id) except (ValueError, TypeError): - print >> sys.stderr, _('Ignoring held msg w/bad id: %(f)s') + print >> sys.stderr, C_('Ignoring held msg w/bad id: %(f)s') continue discards.setdefault(listname, []).append(id) @@ -109,7 +109,8 @@ def main(): # No comment, no preserve, no forward, no forwarding address mlist.HandleRequest(id, mm_cfg.DISCARD, '', False, False, '') if not quiet: - print _('Discarded held msg #%(id)s for list %(listname)s') + print C_( + 'Discarded held msg #%(id)s for list %(listname)s') mlist.Save() finally: mlist.Unlock() |