~futatuki/mailman/2.1-ja-translation

« back to all changes in this revision

Viewing changes to Mailman/Bouncer.py

  • Committer: Yasuhito FUTATSUKI at POEM
  • Date: 2021-10-14 20:39:36 UTC
  • mfrom: (1610.1.261 2.1)
  • Revision ID: futatuki@poem.co.jp-20211014203936-kud5anwq28cxnl0x
sync merge lp:mailman/2.1 up to 1871

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
        if self.bounce_notify_owner_on_disable:
227
227
            self.__sendAdminBounceNotice(member, msg)
228
228
 
229
 
    def __sendAdminBounceNotice(self, member, msg, did=_('disabled')):
 
229
    def __sendAdminBounceNotice(self, member, msg, did=None):
230
230
        # BAW: This is a bit kludgey, but we're not providing as much
231
231
        # information in the new admin bounce notices as we used to (some of
232
232
        # it was of dubious value).  However, we'll provide empty, strange, or
233
233
        # meaningless strings for the unused %()s fields so that the language
234
234
        # translators don't have to provide new templates.
 
235
        if did is None:
 
236
            did = _('disabled')
235
237
        siteowner = Utils.get_site_email(self.host_name)
236
238
        text = Utils.maketext(
237
239
            'bounce.txt',