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-di... for how it determines the language to serve.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan