From 5a9f8b6ae30f93bdff8f7a198f59d9ef74165faa Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Wed, 7 Apr 2021 21:34:54 -0700 Subject: Translate 'disabled' when used. --- Mailman/Bouncer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Mailman') diff --git a/Mailman/Bouncer.py b/Mailman/Bouncer.py index 5077f84c..909f58b0 100644 --- a/Mailman/Bouncer.py +++ b/Mailman/Bouncer.py @@ -226,12 +226,14 @@ class Bouncer: if self.bounce_notify_owner_on_disable: self.__sendAdminBounceNotice(member, msg) - def __sendAdminBounceNotice(self, member, msg, did=_('disabled')): + def __sendAdminBounceNotice(self, member, msg, did=None): # BAW: This is a bit kludgey, but we're not providing as much # information in the new admin bounce notices as we used to (some of # it was of dubious value). However, we'll provide empty, strange, or # meaningless strings for the unused %()s fields so that the language # translators don't have to provide new templates. + if did is None: + did = _('disabled') siteowner = Utils.get_site_email(self.host_name) text = Utils.maketext( 'bounce.txt', -- cgit v1.2.3