On 11/14/24 13:57, Mark wrote:

I have a list and user account set with French as the preferred language.

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

I'm guessing that there may not be an .mo file for it.

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.

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.

--
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

_______________________________________________
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/4MD7ACX6HBHZMQ4DXXGLR23SLT3WSRH6/

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

Reply via email to