not correct language in subject(s)
When receiving all types of system mails from mailman3 (3.3.8) there are almost all the subjects in English, althought text is in German. Am I missing somehting?
The option to have the list in german is toggled and so far all the mails are in german ... also templates on different levels work fine, either en or de, but obviously the subjects are not translated (?) or taken from an English template.
Any hint is appreciated, regards, Jens.
On 5/22/23 14:46, Jens Günther wrote:
When receiving all types of system mails from mailman3 (3.3.8) there are almost all the subjects in English, althought text is in German. Am I missing somehting?
For list welcome and goodbye messages to users, this is https://gitlab.com/mailman/mailman/-/issues/993, fixed by https://gitlab.com/mailman/mailman/-/merge_requests/1000 but since that was fixed in Mailman 3.3.6, this would be a separate issue.
Please be more specific than all types of system mails
. Which specific
message subjects are not translated.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Am 23.05.23 um 00:54 schrieb Mark Sapiro:
For list welcome and goodbye messages to users, this is https://gitlab.com/mailman/mailman/-/issues/993, fixed by https://gitlab.com/mailman/mailman/-/merge_requests/1000 but since that was fixed in Mailman 3.3.6, this would be a separate issue.
I find those changes, but: in the merge request there is mentioned a /usr/lib/python3.10/site-packages/mailman/testing/mailman-fr.po
-> but I don't find a mailman-de.po ... is it maybe that?
Please be more specific than
all types of system mails
. Which specific message subjects are not translated.
It's exactly as mentioned in issue 993 the welcome and goodbye-messages that I don't see translated.
But also other examples: the text is in german, but the reason is in english)
- bounce-mail for the user that moderator approval is necessary (there
- approval-mail for moderator (also text is in german, but subject and reason in english)
Thank you for checking!
On 5/23/23 06:24, Jens Günther wrote:
I find those changes, but: in the merge request there is mentioned a /usr/lib/python3.10/site-packages/mailman/testing/mailman-fr.po
-> but I don't find a mailman-de.po ... is it maybe that?
That file was for a test only. The German message catalog is at mailman/messages/de/LC_MESSAGES/. That directory should contain a mailman.po and a mailman.mo. If there is no mailman.mo, it needs to be created. The source distribution contains a generate_mo.sh script to generate these for all languages, but you can do the German one by changing to the mailman/messages/de/LC_MESSAGES/ directory in the running installation and doing
msgfmt mailman.po -o mailman.mo
Please be more specific than
all types of system mails
. Which specific message subjects are not translated.It's exactly as mentioned in issue 993 the welcome and goodbye-messages that I don't see translated.
But also other examples: the text is in german, but the reason is in english)
- bounce-mail for the user that moderator approval is necessary (there
- approval-mail for moderator (also text is in german, but subject and reason in english)
I'll look into these. If you don't have the mailman/messages/de/LC_MESSAGES/mailman.mo file, this could be the reason, but there may be a bug.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 5/23/23 08:19, Mark Sapiro wrote:
On 5/23/23 06:24, Jens Günther wrote:
But also other examples: the text is in german, but the reason is in english)
- bounce-mail for the user that moderator approval is necessary (there
- approval-mail for moderator (also text is in german, but subject and reason in english)
I'll look into these. If you don't have the mailman/messages/de/LC_MESSAGES/mailman.mo file, this could be the reason, but there may be a bug.
I just tested, and the notice to the moderator of a held message is in the list's preferred language including the Subject: and the moderation reason, and the notice to the user sending a held message is in the User's preferred language for that list including the Subject: and the moderation reason.
I suspect your issue is you don't have the compiled mailman.mo German message catalog. The text is in German because it comes from templates and you presumably do have German language templates.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks Mark for the tests and your thoughts on this matter.
Am 23.05.23 um 17:19 schrieb Mark Sapiro:
That file was for a test only. The German message catalog is at mailman/messages/de/LC_MESSAGES/. That directory should contain a mailman.po and a mailman.mo. If there is no mailman.mo, it needs to be created. The source distribution contains a generate_mo.sh script to generate these for all languages, but you can do the German one by changing to the mailman/messages/de/LC_MESSAGES/ directory in the running installation and doing
msgfmt mailman.po -o mailman.mo
I just checked the mailman/messages/de/LC_MESSAGES directory and there was only a mailman.po. I tried to create the mo-file with the command you provided, unfortunately it doesn't work in the running docker-container (obviously the gettext-package is missing ... and can't install it with apt, but this is another docker-related problem, shall I open another thread?).
I did create on OS-level the mo-file, restarted the container and now the welcome- and goodbye-subject is indeed in German, coolio!
2 thoughts on this for me is: the po)? If so, how would it be possible?
- Shall I create all the mo-files (the other folders also only contain
- How can I make it persistent? (probably it should be included in the repo!? also another thread or an issue regarding maxxking's repo!?)
I just tested, and the notice to the moderator of a held message is in the list's preferred language including the Subject: and the moderation reason, and the notice to the user sending a held message is in the User's preferred language for that list including the Subject: and the moderation reason.
I suspect your issue is you don't have the compiled mailman.mo German message catalog. The text is in German because it comes from templates and you presumably do have German language templates.
Exactly. What I was wondering: for the welcome-messages I did not have explicit templates for those lists/domains/site that I wrote in German, it has to be from the predefined templates, which are stored elsewhere the in the mo-files!? (actually I don't get this point exactly but wouldn't bother, if the above works).
Thanks again!
On 5/24/23 14:36, Jens Günther wrote:
- Shall I create all the mo-files (the other folders also only contain the po)? If so, how would it be possible?
- How can I make it persistent? (probably it should be included in the repo!? also another thread or an issue regarding maxxking's repo!?)
We probably should distribute .mo files too, although currently they are explicitly excluded. I'll see if we have a good reason for not distributing them.
Exactly. What I was wondering: for the welcome-messages I did not have explicit templates for those lists/domains/site that I wrote in German, it has to be from the predefined templates, which are stored elsewhere the in the mo-files!? (actually I don't get this point exactly but wouldn't bother, if the above works).
The templates are actually included in the mailman.po files so that they can be translated all in one place on weblate. However they are not retrieved from there. There are templates for some but not all supported languages in the mailman/templates/ directory in the installation and these are used by default, but these are not up to date in all cases with those in the mailman.po files. That should be fixed as well.
In my case, for the servers I maintain, I update from the heads of the gitlab branches whenever there are significant changes and part of that process compiles the .mo files and updates the templates with scripts at https://gitlab.com/mailman/mailman/-/blob/master/generate_mo.sh and https://gitlab.com/mailman/mailman/-/blob/master/update_lang_templates.py
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Jens Günther
-
Mark Sapiro