summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2001-03-01 05:38:04 +0000
committerbwarsaw2001-03-01 05:38:04 +0000
commitdec035478b2902cf4536d5f7bc60a9a1670ebba3 (patch)
tree1b71951d8fbeb879abb304ed3074d2b1745565d1
parent18c7a072f89614ae65907f10246ecc15877704ce (diff)
downloadmailman-dec035478b2902cf4536d5f7bc60a9a1670ebba3.tar.gz
mailman-dec035478b2902cf4536d5f7bc60a9a1670ebba3.tar.zst
mailman-dec035478b2902cf4536d5f7bc60a9a1670ebba3.zip
process_form(): In the MMNeedApproval exception clause, we need to get
the local variables interpolated into the exception message. Easiest way to do that is to pass it through _().
-rw-r--r--Mailman/Cgi/subscribe.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/Cgi/subscribe.py b/Mailman/Cgi/subscribe.py
index 56ef2081f..650353b4d 100644
--- a/Mailman/Cgi/subscribe.py
+++ b/Mailman/Cgi/subscribe.py
@@ -203,6 +203,9 @@ def process_form(mlist, doc, cgidata, lang):
"confirm your subscription."))
except Errors.MMNeedApproval, x:
+ # We need to interpolate into x
+ realname = mlist.real_name
+ x = _(x)
results += (_("Subscription was <em>deferred</em> "
"because %(x)s. Your request has been "
"forwarded to the list administrator. "