aboutsummaryrefslogtreecommitdiffstats
path: root/bin/cleanarch
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/cleanarch
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/cleanarch')
-rw-r--r--bin/cleanarch10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/cleanarch b/bin/cleanarch
index a8485333..0994bca0 100644
--- a/bin/cleanarch
+++ b/bin/cleanarch
@@ -53,7 +53,7 @@ import getopt
import mailbox
import paths
-from Mailman.i18n import _
+from Mailman.i18n import C_
cre = re.compile(mailbox.UnixMailbox._fromlinepattern)
@@ -69,7 +69,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 escape_line(line, lineno, quiet, output):
if output:
sys.stdout.write('>' + line)
if not quiet:
- print >> sys.stderr, _('Unix-From line changed: %(lineno)d')
+ print >> sys.stderr, C_('Unix-From line changed: %(lineno)d')
print >> sys.stderr, line[:-1]
@@ -108,7 +108,7 @@ def main():
try:
status = int(arg)
except ValueError:
- usage(1, _('Bad status number: %(arg)s'))
+ usage(1, C_('Bad status number: %(arg)s'))
if args:
usage(1)
@@ -164,7 +164,7 @@ def main():
print >> sys.stderr
statuscnt = 0
prevline = line
- print >> sys.stderr, _('%(messages)d messages found')
+ print >> sys.stderr, C_('%(messages)d messages found')