On 7/20/20 5:19 PM, Massimo ZappalĂ wrote:
Hi everyone, Debian buster run on my server. I installed the apt install mailman3-full package and configured it. Everything works fine. I'm trying to change the language (mailman3, postorius and hyperkitty) from English to Italian, but it's not clear what I'm missing. These are the files that I modified to try to set the Italian language:
/etc/mailman3/mailman.cfg default_language: it
/etc/mailman3/mailman-web.py LANGUAGE_CODE = 'it-IT' TIME_ZONE = 'Europe/Rome' USE_I18N = True USE_L10N = True USE_TZ = True
Assuming this is the Debian packages Django settings file for mailman, it probably contains something like
try: from settings_local import * except ImportError: pass
at the end. You should put your local changes in the /etc/mailman3/settings_local.py file.
/usr/lib/python3/dist-packages/django/conf/global_settings.py TIME_ZONE = 'Europe/Rome' USE_TZ = True LANGUAGE_CODE = 'it-IT'
This probably isn't needed as it should be overridden by the above.
With this command, I set the Italian language to the list. It takes the setting, but it doesn't work sudo mailman shell -l test@pratico.work
m.preferred_language='it' commit() CTRL-D
Can anyone tell me what I'm missing?
The source distribution for Mailman core does not contain the compiled message catalogs, and Debian's package probably doesn't either.
Find the mailman/messages/it/LC_MESSAGES directory, cd to that directory and give the command
msgfmt mailman.po -o mailman.mo
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan