--- mailman-2.1.9/bin/change_pw.ctypo 2007-08-27 13:27:11.000000000 +0200
+++ mailman-2.1.9/bin/change_pw 2007-08-27 13:27:11.000000000 +0200
@@ -187,8 +187,8 @@
adminurl = mlist.GetScriptURL('admin', absolute=1)
msg = Message.UserNotification(
mlist.owner[:], Utils.get_site_email(),
- _('Your new %(listname)s list password'),
- _('''\
+ C_('Your new %(listname)s list password'),
+ C_('''\
The site administrator at %(hostname)s has changed the password for your
mailing list %(listname)s. It is now
--- mailman-2.1.9/bin/reset_pw.py.ctypo 2007-08-27 13:27:38.000000000 +0200
+++ mailman-2.1.9/bin/reset_pw.py 2007-08-27 13:28:02.000000000 +0200
@@ -38,7 +38,7 @@
import paths
from Mailman import Utils
-from Mailman.i18n import _
+from Mailman.i18n import _C
try:
@@ -74,13 +74,13 @@
listname = mlist.internal_name()
if verbose:
- print _('Changing passwords for list: %(listname)s')
+ print C_('Changing passwords for list: %(listname)s')
for member in mlist.getMembers():
randompw = Utils.MakeRandomPassword()
mlist.setMemberPassword(member, randompw)
if verbose:
- print _('New password for member %(member)40s: %(randompw)s')
+ print C_('New password for member %(member)40s: %(randompw)s')
mlist.Save()
--- mailman-2.1.9/bin/update.ctypo 2007-08-27 13:27:11.000000000 +0200
+++ mailman-2.1.9/bin/update 2007-08-27 13:27:11.000000000 +0200
@@ -445,7 +445,7 @@
except EnvironmentError, e:
if e.errno <> errno.ENOTDIR:
raise
- print _('Warning! Not a directory: %(dirpath)s')
+ print C_('Warning! Not a directory: %(dirpath)s')
@@ -528,7 +528,7 @@
msg = data = None
except EOFError:
# For some reason the pckfile was empty. Just delete it.
- print _('Warning! Deleting empty .pck file: %(pckfile)s')
+ print C_('Warning! Deleting empty .pck file: %(pckfile)s')
os.unlink(pckfile)
finally:
if msgfp:
--- mailman-2.1.9/bin/newlist.ctypo 2007-08-27 13:27:11.000000000 +0200
+++ mailman-2.1.9/bin/newlist 2007-08-27 13:27:11.000000000 +0200
@@ -243,7 +243,7 @@
try:
msg = Message.UserNotification(
owner_mail, siteowner,
- _('Your new mailing list: %(listname)s'),
+ C_('Your new mailing list: %(listname)s'),
text, mlist.preferred_language)
msg.send(mlist)
finally:
--- mailman-2.1.9/bin/check_perms.ctypo 2007-08-27 13:27:11.000000000 +0200
+++ mailman-2.1.9/bin/check_perms 2007-08-27 13:27:11.000000000 +0200
@@ -213,7 +213,7 @@
# In addition, on a multiuser system you may want to hide the private
# archives so other users can't read them.
if mode & S_IXOTH:
- print _("""\
+ print C_("""\
Warning: Private archive directory is other-executable (o+x).
This could allow other users on your system to read private archives.
If you're on a shared multiuser system, you should consult the
--- mailman-2.1.9/Mailman/MTA/Postfix.py.ctypo 2007-08-27 13:27:11.000000000 +0200
+++ mailman-2.1.9/Mailman/MTA/Postfix.py 2007-08-27 13:27:11.000000000 +0200
@@ -351,9 +351,9 @@
if stat and (stat[ST_MODE] & targetmode) <> targetmode:
state.ERRORS += 1
octmode = oct(stat[ST_MODE])
- print _('%(dbfile)s permissions must be 066x (got %(octmode)s)'),
+ print C_('%(dbfile)s permissions must be 066x (got %(octmode)s)'),
if state.FIX:
- print _('(fixing)')
+ print C_('(fixing)')
os.chmod(dbfile, stat[ST_MODE] | targetmode)
else:
print