From e7519290ad288df840bc86d8dcaea524407df964 Mon Sep 17 00:00:00 2001 From: Yasuhito FUTATSUKI at POEM Date: Mon, 22 Feb 2016 20:06:27 +0900 Subject: * add option to pick up C_() texts to make potfile * revise command line utils _()/C_() usage (not tested at all) --- bin/reset_pw.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/reset_pw.py') diff --git a/bin/reset_pw.py b/bin/reset_pw.py index e829aefe..b71d5323 100644 --- a/bin/reset_pw.py +++ b/bin/reset_pw.py @@ -38,7 +38,7 @@ import getopt import paths from Mailman import Utils -from Mailman.i18n import _ +from Mailman.i18n import C_ try: @@ -54,7 +54,7 @@ def usage(code, msg=''): fd = sys.stderr else: fd = sys.stdout - print >> fd, _(__doc__.replace('%', '%%')) + print >> fd, C_(__doc__.replace('%', '%%')) if msg: print >> fd, msg sys.exit(code) @@ -74,13 +74,13 @@ def reset_pw(mlist, *args): listname = mlist.internal_name() if verbose: - print _('Changing passwords for list: %(listname)s') + print C_('Changing passwords for list: %(listname)s') for member in mlist.getMembers(): randompw = Utils.MakeRandomPassword() mlist.setMemberPassword(member, randompw) if verbose: - print _('New password for member %(member)40s: %(randompw)s') + print C_('New password for member %(member)40s: %(randompw)s') mlist.Save() -- cgit v1.2.3