aboutsummaryrefslogtreecommitdiffstats
path: root/bin/dumpdb
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2016-02-27 15:21:12 -0800
committerMark Sapiro <mark@msapiro.net>2016-02-27 15:21:12 -0800
commit95385417e926517c13ee769ef915ce5710a515f2 (patch)
treea39eccce0b844476a3715f328ee6712a5d62640e /bin/dumpdb
parent1833e1e51f4994d733c4ef3fca7c6ef7a4fd519e (diff)
parentb3e0912e4d982e53eccac906fad347e8f1792b97 (diff)
downloadmailman2-95385417e926517c13ee769ef915ce5710a515f2.tar.gz
mailman2-95385417e926517c13ee769ef915ce5710a515f2.tar.xz
mailman2-95385417e926517c13ee769ef915ce5710a515f2.zip
Fixed l10n to use correct charset for command-line scripts.
Diffstat (limited to 'bin/dumpdb')
-rw-r--r--bin/dumpdb18
1 files changed, 9 insertions, 9 deletions
diff --git a/bin/dumpdb b/bin/dumpdb
index c8e42462..1a148662 100644
--- a/bin/dumpdb
+++ b/bin/dumpdb
@@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-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
@@ -54,7 +54,7 @@ from types import StringType
import paths
# Import this /after/ paths so that the sys.path is properly hacked
-from Mailman.i18n import _
+from Mailman.i18n import C_
PROGRAM = sys.argv[0]
COMMASPACE = ', '
@@ -72,7 +72,7 @@ def usage(code, msg=''):
fd = sys.stderr
else:
fd = sys.stdout
- print >> fd, _(__doc__) % globals()
+ print >> fd, C_(__doc__) % globals()
if msg:
print >> fd, msg
sys.exit(code)
@@ -102,10 +102,10 @@ def main():
doprint = False
if len(args) < 1:
- usage(1, _('No filename given.'))
+ usage(1, C_('No filename given.'))
elif len(args) > 1:
pargs = COMMASPACE.join(args)
- usage(1, _('Bad arguments: %(pargs)s'))
+ usage(1, C_('Bad arguments: %(pargs)s'))
else:
filename = args[0]
@@ -115,7 +115,7 @@ def main():
elif filename.endswith('.pck'):
filetype = 0
else:
- usage(1, _('Please specify either -p or -m.'))
+ usage(1, C_('Please specify either -p or -m.'))
# Handle dbs
pp = pprint.PrettyPrinter(indent=4)
@@ -130,16 +130,16 @@ def main():
try:
cnt = 1
if doprint:
- print _('[----- start %(typename)s file -----]')
+ print C_('[----- start %(typename)s file -----]')
while True:
try:
obj = load(fp)
except EOFError:
if doprint:
- print _('[----- end %(typename)s file -----]')
+ print C_('[----- end %(typename)s file -----]')
break
if doprint:
- print _('<----- start object %(cnt)s ----->')
+ print C_('<----- start object %(cnt)s ----->')
if isinstance(obj, StringType):
print obj
else: