Localization issue with 'remove_members' and possible fix
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
Medium
|
Mark Sapiro |
Bug Description
Hello,
I found a language issue that I was able to fix. My installation of Mailman 2.1.13
(Debian Squeeze) uses German localization, DEFAULT_
is set to 'de'.
The issue: When I remove a member from the commandline with
'remove_members <list> <address>', the mail to the user 'You have been
unsubscribed from the <list> mailing list' has an unlocalized subject line.
This does not happen using the email interface.
Obviously the user language setting for i18n has not been done when this mail
subject string gets localized. I inserted one line into Deliverer.py which fixed
the issue for me:
File: Deliverer.py - near line 84
...
def SendUnsubscribe
realname = self.real_name
+ i18n.set_
msg = Message.
_('You have been unsubscribed from the %(realname)s mailing list'),
msg.send(self, verp=mm_
...
Could someone knowledgeable please review this as I am not sure that it is
the proper fix for the issue?
Regards
Thomas
Related branches
Changed in mailman: | |
milestone: | 2.1.16 → 2.1.16rc1 |
status: | Fix Committed → Fix Released |
Thank you for the report and the suggested fix which is the right one.