On 7/17/20 8:22 AM, maszap@tin.it wrote:
Hi everyone, from here: https://hosted.weblate.org/projects/gnu-mailman/hyperkitty/it/ I see that there is a way to change the language of mailman3, postorius and hyperkitty But I don't find how. I read that you can download the .po files for the chosen language, but I didn't understand how to use these files. Could anyone show me how to do it?
The various message catalogs for Mailman core are in mailman/messages/ and those for hyperkitty, django-mailman3 and postorius are respectively in hyperkitty/locale/, django-mailman3/locale/ and postorius/locale/.
The translations from weblate are incorporated in the distribution, but depending on how Mailman is installed, may be out of date.
To set language for Django (i.e. hyperkitty and postorius) see <https://docs.djangoproject.com/en/3.0/topics/i18n/translation/#how-django-discovers-language-preference>.
For Mailman core, set [mailman] default_language:
in mailman.cfg. You
also need to (re)generate the .mo file which can be done with the
generate_mo.sh script. See
<https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/internationalization.html#generating-po-files>
For Django, you need to generate .mo files with
django_admin compilemessages
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan