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-di...
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 <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan