On 2024-11-18 01:38, Mark Sapiro wrote:
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.


It's just the one list that is using French. Others are in English

I've edited the order of the middleware settings in this file ...

/opt/mailman/venv/lib/python3.11/site-packages/mailman_web/settings/base.py

I reordered as below, restarted everything but no joy :-(

... at Line 76
...
MIDDLEWARE = (
    'allauth.account.middleware.AccountMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.middleware.locale.LocaleMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.middleware.security.SecurityMiddleware',
    'django_mailman3.middleware.TimezoneMiddleware',
    'postorius.middleware.PostoriusMiddleware',
)
...

I'm thinking this is not the file I'm looking for. Apologies for my cluelessness here.


_______________________________________________
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/IMP7D4JG36FHUY3NQ6WFAFP6E5YBRJRT/

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

Reply via email to