On 11/17/24 16:57, Mark wrote:
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?
No, It's fine. The issue is the language context for this message has
nothing to do with any Mailman list's preferred language.
Again, see
https://docs.djangoproject.com/en/5.1/topics/i18n/translation/#how-django-discovers-language-preference
If all the lists on your server are French, you could set
LANGUAGE_CODE = 'fr'
in your Django settings. Otherwise, the user's browser has to include an
Accept-Language: header specifying French as the most preferred language
in it's request.
Also note the ordering of SessionMiddleware, LocaleMiddleware and
CommonMiddleware in the above doc. I have recently updated the various
places where we suggest or supply MIDDLEWARE settings, but you may find
that your settings have LocaleMiddleware after CommonMiddleware and you
should fix that.
--
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/3UZMQD4CVSZSTJYVTH73ANFSP2NH6MYN/
This message sent to arch...@mail-archive.com