diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2016-02-22 17:51:37 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2016-02-22 17:51:37 +0900 |
commit | 6aaafb6c05840389f1dd9139da9694f3b43c57df (patch) | |
tree | 3ca127f0bd34ede1ff388fa529fffad522d424d8 /bin/check_db | |
parent | 3c78c57cc88877f701a935ce009efd39d31925e6 (diff) | |
download | mailman2-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/check_db')
-rwxr-xr-x | bin/check_db | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/check_db b/bin/check_db index b1157bc7..40fa0a27 100755 --- a/bin/check_db +++ b/bin/check_db @@ -59,7 +59,7 @@ import paths from Mailman import mm_cfg from Mailman import Utils from Mailman.MailList import MailList -from Mailman.i18n import _ +from Mailman.i18n import C_ PROGRAM = sys.argv[0] @@ -70,7 +70,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) @@ -111,12 +111,12 @@ def main(): listnames = [n.lower().strip() for n in listnames] if not listnames: - print _('Nothing to do.') + print C_('Nothing to do.') sys.exit(0) for listname in listnames: if not Utils.list_exists(listname): - print _('No list named:'), listname + print C_('No list named:'), listname continue mlist = MailList(listname, lock=0) pfile = os.path.join(mlist.fullpath(), 'config.pck') @@ -125,7 +125,7 @@ def main(): dlast = dfile + '.last' if verbose: - print _('List:'), listname + print C_('List:'), listname for file in (pfile, plast, dfile, dlast): status = 0 @@ -145,7 +145,7 @@ def main(): else: print ' %s: %s' % (file, status) elif verbose: - print _(' %(file)s: okay') + print C_(' %(file)s: okay') |