diff options
| author | bwarsaw | 2002-09-17 21:47:25 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-09-17 21:47:25 +0000 |
| commit | 115af19cce507f9cc272f79ae77899f1c84ee061 (patch) | |
| tree | 4bb9495a78338c90b49a4977cc232b67452e5a2d /Mailman/Cgi/confirm.py | |
| parent | 6049e6612ae8b556129e7ea622cd5e35bd20626b (diff) | |
| download | mailman-115af19cce507f9cc272f79ae77899f1c84ee061.tar.gz mailman-115af19cce507f9cc272f79ae77899f1c84ee061.tar.zst mailman-115af19cce507f9cc272f79ae77899f1c84ee061.zip | |
Diffstat (limited to 'Mailman/Cgi/confirm.py')
| -rw-r--r-- | Mailman/Cgi/confirm.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Mailman/Cgi/confirm.py b/Mailman/Cgi/confirm.py index c728b896d..6a7d6be09 100644 --- a/Mailman/Cgi/confirm.py +++ b/Mailman/Cgi/confirm.py @@ -419,6 +419,8 @@ def unsubscription_prompt(mlist, doc, cookie, addr): fullname = mlist.getMemberName(addr) if fullname is None: fullname = _('<em>Not available</em>') + else: + fullname = Utils.uncanonstr(fullname, lang) table.AddRow([_("""Your confirmation is required in order to complete the unsubscription request from the mailing list <em>%(listname)s</em>. You are currently subscribed with @@ -506,6 +508,8 @@ def addrchange_prompt(mlist, doc, cookie, oldaddr, newaddr, globally): fullname = mlist.getMemberName(oldaddr) if fullname is None: fullname = _('<em>Not available</em>') + else: + fullname = Utils.uncanonstr(fullname, lang) if globally: globallys = _('globally') else: @@ -737,7 +741,14 @@ def reenable_prompt(mlist, doc, cookie, list, member): daysleft = int(info.noticesleft * mlist.bounce_you_are_disabled_warnings_interval / mm_cfg.days(1)) - username = mlist.getMemberName(member) or _('<em>not available</em>') + # BAW: for consistency this should be changed to 'fullname' or the above + # 'fullname's should be changed to 'username'. Don't want to muck with + # the i18n catalogs though. + username = mlist.getMemberName(member) + if username is None: + username = _('<em>not available</em>') + else: + username = Utils.uncanonstr(username, lang) table.AddRow([_("""Your membership in the %(realname)s mailing list is currently disabled due to excessive bounces. Your confirmation is |
