------------------------------------------------------------
revno: 1289
committer: Mark Sapiro <[email protected]>
branch nick: 2.1
timestamp: Fri 2011-04-15 10:51:20 -0700
message:
Refactor last change for i18n.
modified:
Mailman/Cgi/admin.py
--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1
Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/Cgi/admin.py'
--- Mailman/Cgi/admin.py 2011-04-14 23:21:01 +0000
+++ Mailman/Cgi/admin.py 2011-04-15 17:51:20 +0000
@@ -184,18 +184,20 @@
non-digest delivery or your mailing list will basically be
unusable.'''), tag=_('Warning: '))
- if not mlist.digestable and mlist.getDigestMemberKeys():
+ dm = mlist.getDigestMemberKeys()
+ if not mlist.digestable and dm:
doc.addError(
_('''You have digest members, but digests are turned
off. Those people will not receive mail.
- Affected member(s) %r.''' % mlist.getDigestMemberKeys()),
+ Affected member(s) %(dm)r.'''),
tag=_('Warning: '))
- if not mlist.nondigestable and mlist.getRegularMemberKeys():
+ rm = mlist.getRegularMemberKeys()
+ if not mlist.nondigestable and rm:
doc.addError(
_('''You have regular list members but non-digestified mail is
turned off. They will receive non-digestified mail until you
- fix this problem. Affected member(s) %r.''' %
- mlist.getRegularMemberKeys()), tag=_('Warning: '))
+ fix this problem. Affected member(s) %(rm)r.'''),
+ tag=_('Warning: '))
# Glom up the results page and print it out
show_results(mlist, doc, category, subcat, cgidata)
print doc.Format()
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org