aboutsummaryrefslogtreecommitdiffstats
path: root/bin/fix_url.py
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/fix_url.py
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/fix_url.py')
-rw-r--r--bin/fix_url.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/fix_url.py b/bin/fix_url.py
index d2731c14..5a63e2c4 100644
--- a/bin/fix_url.py
+++ b/bin/fix_url.py
@@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 2001-2010 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-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
@@ -43,12 +43,12 @@ import getopt
import paths
from Mailman import mm_cfg
-from Mailman.i18n import _
+from Mailman.i18n import C_
def usage(code, msg=''):
- print _(__doc__.replace('%', '%%'))
+ print C_(__doc__.replace('%', '%%'))
if msg:
print msg
sys.exit(code)
@@ -72,7 +72,7 @@ def fix_url(mlist, *args):
# Make sure list is locked.
if not mlist.Locked():
if verbose:
- print _('Locking list')
+ print C_('Locking list')
mlist.Lock()
if urlhost:
web_page_url = mm_cfg.DEFAULT_URL_PATTERN % urlhost
@@ -82,12 +82,12 @@ def fix_url(mlist, *args):
mailhost = mm_cfg.DEFAULT_EMAIL_HOST
if verbose:
- print _('Setting web_page_url to: %(web_page_url)s')
+ print C_('Setting web_page_url to: %(web_page_url)s')
mlist.web_page_url = web_page_url
if verbose:
- print _('Setting host_name to: %(mailhost)s')
+ print C_('Setting host_name to: %(mailhost)s')
mlist.host_name = mailhost
- print _('Saving list')
+ print C_('Saving list')
mlist.Save()
mlist.Unlock()