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/change_pw | |
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/change_pw')
-rw-r--r-- | bin/change_pw | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/bin/change_pw b/bin/change_pw index 67d56392..28270949 100644 --- a/bin/change_pw +++ b/bin/change_pw @@ -1,6 +1,6 @@ #! @PYTHON@ # -# Copyright (C) 2001-2008 by the Free Software Foundation, Inc. +# Copyright (C) 2001-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 @@ -77,6 +77,7 @@ from Mailman import Message from Mailman import i18n _ = i18n._ +C_ = i18n.C_ SPACE = ' ' @@ -87,7 +88,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) @@ -103,7 +104,7 @@ def openlist(listname): try: mlist = MailList.MailList(listname, lock=0) except Errors.MMListError, e: - usage(1, _('No such list "%(listname)s"\n%(e)s')) + usage(1, C_('No such list "%(listname)s"\n%(e)s')) _listcache[listname] = mlist return mlist @@ -141,11 +142,11 @@ def main(): if args: strargs = SPACE.join(args) - usage(1, _('Bad arguments: %(strargs)s')) + usage(1, C_('Bad arguments: %(strargs)s')) if password is not None: if not password: - usage(1, _('Empty list passwords are not allowed')) + usage(1, C_('Empty list passwords are not allowed')) shapassword = Utils.sha_new(password).hexdigest() if domains: @@ -155,7 +156,7 @@ def main(): listnames[name] = 1 if not listnames: - print >> sys.stderr, _('Nothing to do.') + print >> sys.stderr, C_('Nothing to do.') sys.exit(0) # Set the password on the lists @@ -177,7 +178,7 @@ def main(): mlist.Unlock() # Notification - print _('New %(listname)s password: %(notifypassword)s') + print C_('New %(listname)s password: %(notifypassword)s') if not quiet: otrans = i18n.get_translation() i18n.set_language(mlist.preferred_language) |