diff options
author | Mark Sapiro <mark@msapiro.net> | 2018-06-17 12:26:36 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2018-06-17 12:26:36 -0700 |
commit | 08d25ccc7e594f16fbbfebe486b2d5a62f3ec855 (patch) | |
tree | ec4decaa3bd513129277013a7f5c194735c306ad /Mailman/Cgi/options.py | |
parent | 3e3819ce7fa318f5e60b2f04ae94b48698ab73a5 (diff) | |
parent | 9b2169e95b5ec2fb8cbc0c745a92da37c70841f2 (diff) | |
download | mailman2-08d25ccc7e594f16fbbfebe486b2d5a62f3ec855.tar.gz mailman2-08d25ccc7e594f16fbbfebe486b2d5a62f3ec855.tar.xz mailman2-08d25ccc7e594f16fbbfebe486b2d5a62f3ec855.zip |
I18n for new whence reasons in admin (un)subscribe notices.
Diffstat (limited to '')
-rw-r--r-- | Mailman/Cgi/options.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py index 4f128baf..c2a84ecb 100644 --- a/Mailman/Cgi/options.py +++ b/Mailman/Cgi/options.py @@ -45,6 +45,8 @@ DIGRE = re.compile( # Set up i18n _ = i18n._ i18n.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE) +def D_(s): + return s try: True, False @@ -581,9 +583,10 @@ address. Upon confirmation, any other mailing list containing the address mlist.Lock() needapproval = False try: + _ = D_ try: mlist.DeleteMember( - user, 'via the member options page', userack=1) + user, _('via the member options page'), userack=1) except Errors.MMNeedApproval: needapproval = True except Errors.NotAMemberError: @@ -595,6 +598,7 @@ address. Upon confirmation, any other mailing list containing the address pass mlist.Save() finally: + _ = i18n._ mlist.Unlock() # Now throw up some results page, with appropriate links. We can't # drop them back into their options page, because that's gone now! |