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/Bouncer.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/Bouncer.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Mailman/Bouncer.py b/Mailman/Bouncer.py index 2a1cb539..ae0c012c 100644 --- a/Mailman/Bouncer.py +++ b/Mailman/Bouncer.py @@ -40,7 +40,8 @@ EMPTYSTRING = '' # for time.mktime(). ZEROHOUR_PLUSONEDAY = time.localtime(mm_cfg.days(1))[:3] -def _(s): return s +def D_(s): return s +_ = D_ REASONS = {MemberAdaptor.BYBOUNCE: _('due to excessive bounces'), MemberAdaptor.BYUSER: _('by yourself'), @@ -264,10 +265,12 @@ class Bouncer: reason = self.getDeliveryStatus(member) if info.noticesleft <= 0: # BAW: Remove them now, with a notification message + _ = D_ self.ApprovedDeleteMember( - member, 'disabled address', + member, _('disabled address'), admin_notif=self.bounce_notify_owner_on_removal, userack=1) + _ = i18n._ # Expunge the pending cookie for the user. We throw away the # returned data. self.pend_confirm(info.cookie) |