aboutsummaryrefslogtreecommitdiffstats
path: root/bin/change_pw
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/change_pw
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/change_pw')
-rw-r--r--bin/change_pw9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/change_pw b/bin/change_pw
index 67d56392..35be13d4 100644
--- a/bin/change_pw
+++ b/bin/change_pw
@@ -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
@@ -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)