diff options
| author | bwarsaw | 2002-02-28 22:36:04 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-02-28 22:36:04 +0000 |
| commit | 91a424d74d70a42b1a3649a319d4a9a740346bdf (patch) | |
| tree | cb3f0b28ff466875de0425133734f8c51ed5e47e | |
| parent | a1bd536541949b48a20262a6c0b9df4455496b24 (diff) | |
| download | mailman-91a424d74d70a42b1a3649a319d4a9a740346bdf.tar.gz mailman-91a424d74d70a42b1a3649a319d4a9a740346bdf.tar.zst mailman-91a424d74d70a42b1a3649a319d4a9a740346bdf.zip | |
| -rw-r--r-- | Mailman/Cgi/subscribe.py | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/Mailman/Cgi/subscribe.py b/Mailman/Cgi/subscribe.py index 8aead66fb..6f7175b44 100644 --- a/Mailman/Cgi/subscribe.py +++ b/Mailman/Cgi/subscribe.py @@ -219,11 +219,16 @@ moderator's decision when they get to your request.""") # This could be a membership probe. For safety, let the user know # a probe occurred. BAW: should we inform the list moderator? listaddr = mlist.GetListEmail() - msg = Message.UserNotification( - mlist.getMemberCPAddress(email), - mlist.GetAdminEmail(), - _('Mailman privacy alert'), - _("""\ + # Set the language for this email message to the member's language. + mlang = mlist.getMemberLanguage(email) + otrans = i18n.get_translation() + i18n.set_language(mlang) + try: + msg = Message.UserNotification( + mlist.getMemberCPAddress(email), + mlist.GetAdminEmail(), + _('Mailman privacy alert'), + _("""\ An attempt was made to subscribe your address to the mailing list %(listaddr)s. You are already subscribed to this mailing list. @@ -236,7 +241,9 @@ subscribed to the list, then you can ignore this message. If you suspect that an attempt is being made to covertly discover whether you are a member of this list, and you are worried about your privacy, then feel free to send a message to the list administrator at %(listowner)s. -""")) +"""), lang=mlang) + finally: + i18n.set_translation(otrans) msg.send(mlist) # These shouldn't happen unless someone's tampering with the form except Errors.MMCantDigestError: |
