On 2024-11-14 23:58, Mark Sapiro wrote:
On 11/14/24 13:57, Mark wrote:

Most message emails (such as the Welcome email) all arrive in French, but not the Password Reset email (shown below) - it arrives in English.


This message comes from django-allauth. there is a French message
catalog for it. These are in
site-packages/allauth/locale/fr/LC_MESSAGES and should be good. You
can always run `django-admin compilemessages` to update all the .mo
files for all the projects.


I can see the French text for the "Password Reset Email" in the django.po file. And running the compilemessages command reports the "django.po" for French is okay and up to date. Should I be recompiling the ".mo" file?

cd /opt/mailman/venv/lib/python3.11/site-packages/allauth
(venv) ... $ django-admin compilemessagespwd
...
File “/opt/mailman/venv/lib/python3.11/site-packages/allauth/locale/fr/LC_MESSAGES/django.po” is already compiled and up to date.
...


However, the issue is probably that Django doesn't get the language
context from the list's preferred language. In fact, the password
reset is not in a list context at all. See
https://docs.djangoproject.com/en/5.1/topics/i18n/translation/#how-django-discovers-language-preference
for how it determines the language to serve.

I'm afraid I don't understand the Django documentation. It seems to be referring to site-wide settings for language, and not "per list".

_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/G4NVQ2L7MTUL3U6AKQNWDY725QA6IINK/

This message sent to arch...@mail-archive.com

Reply via email to