On 7/6/26 12:25 AM, Mark Sapiro wrote:
On 7/5/26 1:34 PM, Flo via Mailman-users wrote:
Line 101 is the same as line 126. While 101 is the correct translation for line 100, it's wrong for line 125. But this is no explanation for not translating.
If you want to help with the German translations, you are welcome to contribute at https://hosted.weblate.org/projects/gnu-mailman/ or to contact the last translator listed in the .po file.
I will do.
user's preferred language, not the list's. What is the user's preferred language?
This field is empty at the user's settings, it should default to the list's language. This works for the unsubscription message, though.
If the user's preferred language for the list is empty, fallback is to the user's address based settings and then to their global Mailman settings.
How can I find these settings in Postorius? There is only a user's language and a list's language.
At the user's settings Postorius says:
Preferred language for your interactions with Mailman. When this is set,
it will override the MailingList's preferred language. This affects
which language is used for your email notifications and such.
The unsubscription message to the user is also in the user's preferred language, so that probably isn't the issue.
Is the Subject message translated in your mailman/massages/de/ LC_MESSAGES/mailman.po file? if so, is the corresponding mailman.mo up to date (if in doubt, use
msgunfmtto examine it)?
I found this file and also the translated message:
#: src/mailman/app/notifications.py:254
#, python-brace-format
msgid "Your subscription for ${mlist.display_name} mailing list has been
disabled"
msgstr "Sie wurden von der Mailingliste ${mlist.display_name} abgemeldet"
I can't see any wrong such that it doesn't translate.
Finally I had a look into the code of https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/app/notificatio... . This was not very efficient as I don't know Python but I found out that if I add
with _.using(language.code):
on line 266 and do the correct intends below it translates. I found this by comparing send_user_disable_warning with send_goodbye_message . I also got confused by wrap and expand once being inside and once outside but apparently it works both ways.
I leave it to you how to do the changes as, having already said, I don't know Python and for me everything is like guessing instead of knowing.
Flo