On 7/17/20 9:44 AM, Massimo ZappalĂ wrote:
Hi everyone, Mark thanks for the reply. My installation was done on Debian Buster by installing the mailman3-full package
I can't find the path you indicated:
Mailman core in mailman/messages/ Hyperkitty in hyperkitty/local/ django-mailman3 in django-mailman3/local/ postorius in postorius/local/ Maybe some packages are missing?
I doubt things are missing. I can't keep track of where all the
downstream packages put things, but look in /usr/lib/mailman and/or
/var/lib/mailman or use tools like find
or locate
.
To set language for Django (i.e. hyperkitty and postorius) see https://docs.djangoproject.com/en/3.0/topics/i18n/translation/#how-django-di.... What are the files to be edited?
settings_local.py
For Mailman core, set [mailman] default_language: in mailman.cfg. Ok Done
You also need to (re)generate the .mo file which can be done with the generate_mo.sh script. I can't find the script
It probably isn't included in the Debian package. This is what it does.
#!/bin/bash
# This script generates .mo files from all the .po files in the source.
echo 'Generating mo files for GNU Mailman ...'
for file in find -name 'mailman.po'
do
echo $file
msgfmt $file -o ${file/po/mo} -v
done
For Django, you need to generate .mo files with django_admin compilemessages Where should this be written?
You give the compilemessages subcommand to whatever command you use for django-admin or manage.py or whatever the Debian package calls it.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan