diff options
author | Mark Sapiro <msapiro@value.net> | 2011-04-15 10:51:20 -0700 |
---|---|---|
committer | Mark Sapiro <msapiro@value.net> | 2011-04-15 10:51:20 -0700 |
commit | eb702a00e820cb13b06710f26f369563e51c07b1 (patch) | |
tree | 779d4d46f442ce891ef08274ece8be18bea54ded | |
parent | 67975ee0f8fdda1554ac5af976b4cc76e57edeca (diff) | |
download | mailman2-eb702a00e820cb13b06710f26f369563e51c07b1.tar.gz mailman2-eb702a00e820cb13b06710f26f369563e51c07b1.tar.xz mailman2-eb702a00e820cb13b06710f26f369563e51c07b1.zip |
Refactor last change for i18n.
-rw-r--r-- | Mailman/Cgi/admin.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py index 7b1ac1dd..b4455cbc 100644 --- a/Mailman/Cgi/admin.py +++ b/Mailman/Cgi/admin.py @@ -184,18 +184,20 @@ def main(): 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() |