diff options
| author | bwarsaw | 2001-02-28 17:17:32 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-02-28 17:17:32 +0000 |
| commit | 29a3cd601994f90d3f470ab38e8b391cda590e41 (patch) | |
| tree | 27c272e22188e86714972c81b37d4d6b802c7e04 /Mailman/Cgi/roster.py | |
| parent | 3422e9dd9efcda822464d42c41ca913d291a38df (diff) | |
| download | mailman-29a3cd601994f90d3f470ab38e8b391cda590e41.tar.gz mailman-29a3cd601994f90d3f470ab38e8b391cda590e41.tar.zst mailman-29a3cd601994f90d3f470ab38e8b391cda590e41.zip | |
Diffstat (limited to 'Mailman/Cgi/roster.py')
| -rw-r--r-- | Mailman/Cgi/roster.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Mailman/Cgi/roster.py b/Mailman/Cgi/roster.py index c3733630c..715101845 100644 --- a/Mailman/Cgi/roster.py +++ b/Mailman/Cgi/roster.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc. +# Copyright (C) 1998,1999,2000,2001 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 @@ -33,6 +33,7 @@ from Mailman import htmlformat from Mailman import Errors from Mailman import mm_cfg from Mailman.Logging.Syslog import syslog +from Mailman.i18n import _ @@ -48,7 +49,7 @@ def main(): try: mlist = MailList.MailList(listname, lock=0) except Errors.MMListError, e: - error_page(_('No such list <em>%s</em>') % listname) + error_page(_('No such list <em>%(listname)s</em>')) syslog('error', 'roster: no such list "%s": %s' % (listname, e)) return @@ -77,8 +78,8 @@ def main(): # No privacy. bad = "" else: - auth_req = (_("%s subscriber list requires authentication.") - % mlist.real_name) + realname = mlist.real_name + auth_req = _("%(realname)s subscriber list requires authentication.") if not form.has_key("roster-pw"): bad = auth_req else: @@ -97,13 +98,12 @@ def main(): except (Errors.MMBadUserError, Errors.MMBadPasswordError, Errors.MMNotAMemberError): - bad = (_("%s subscriber authentication failed.") - % mlist.real_name) + bad = _( + "%(realname)s subscriber authentication failed.") else: # Anonymous list - admin-only visible # - and we already tried admin password, above. - bad = (_("%s admin authentication failed.") - % mlist.real_name) + bad = _("%(realname)s admin authentication failed.") if bad: doc = error_page_doc(bad) doc.AddItem(mlist.GetMailmanFooter()) |
