From 618ea6c169b1553d88d2eca19e7cd7ddad2a605d Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 6 Nov 2001 22:57:22 +0000 Subject: subscription_prompt(), unsubscription_prompt(), heldmsg_prompt(): The results strings should be displayed in the language that the subscribee has requested. Also, tailor the response message based on whether the moderators have to approve a confirmed request or not. Reported by Daniel Buchmann. subscription_confirm(): Need a `listname' local variable for _() string interpolation. --- Mailman/Cgi/confirm.py | 41 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/Mailman/Cgi/confirm.py b/Mailman/Cgi/confirm.py index fe5e44147..50fb59b62 100644 --- a/Mailman/Cgi/confirm.py +++ b/Mailman/Cgi/confirm.py @@ -175,9 +175,12 @@ def ask_for_cookie(mlist, doc, extra=''): def subscription_prompt(mlist, doc, cookie, - email, name, password, digest, lang): + email, name, password, digest, lang): title = _('Confirm subscription request') doc.SetTitle(title) + i18n.set_language(lang) + doc.set_language(lang) + form = Form(mlist.GetScriptURL('confirm', 1)) table = Table(border=0, width='100%') table.AddRow([Center(Bold(FontAttr(title, size='+1')))]) @@ -185,7 +188,12 @@ def subscription_prompt(mlist, doc, cookie, colspan=2, bgcolor=mm_cfg.WEB_HEADER_COLOR) listname = mlist.real_name - table.AddRow([_("""Your confirmation is required in order to complete the + # This is the normal, no-confirmation required results text. + # + # We do things this way so we don't have to reformat this paragraph, which + # would mess up translations. If you modify this text for other reasons, + # please refill the paragraph, and clean up the logic. + result = _("""Your confirmation is required in order to complete the subscription request to the mailing list %(listname)s. Your subscription settings are shown below; make any necessary changes and hit Subscribe to complete the confirmation process. Once you've @@ -194,7 +202,20 @@ def subscription_prompt(mlist, doc, cookie, options.
Or hit Cancel and discard to cancel this subscription - request.""") + '
Or you can hit Cancel and discard now to cancel this + subscription request.""") + '