mailman3-web language preference and translation settings
Hi,
I've tested mailman3 and now installed it on productive server. The customer complains that the translation to German is incomplete on the productive server while it was complete on the test server.
I can't find a way to confirm this because I only see the English frontend of mailman3-web and I don't know how to switch language in the frontend (I have my OS set to English).
Kind regards
On 12/6/23 06:23, Nils wrote:
Hi,
I've tested mailman3 and now installed it on productive server. The customer complains that the translation to German is incomplete on the productive server while it was complete on the test server.
I can't find a way to confirm this because I only see the English frontend of mailman3-web and I don't know how to switch language in the frontend (I have my OS set to English).
You need to run the Django admin command compilemessages
and perhaps
others. See
https://docs.mailman3.org/en/latest/install/virtualenv.html#run-database-mig...
and the following three sections.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks for your help, Mark. I've already tried that and it gave me this message:
# sudo -u www-data python3 /usr/bin/django-admin compilemessages --pythonpath /usr/share/mailman3-web --settings settings CommandError: This script should be run from the Django Git checkout or your project or app tree, or with the settings module specified.
I'm working on ubuntu and I don't have (venv)$ The other commands (migrate, collectstatic and compress) worked fine. Kind regards
On 12/6/23 22:04, Mark Sapiro wrote:
You need to run the Django admin command
compilemessages
and perhaps others. See https://docs.mailman3.org/en/latest/install/virtualenv.html#run-database-mig... and the following three sections.
On 12/6/23 15:54, Nils wrote:
Thanks for your help, Mark. I've already tried that and it gave me this message:
# sudo -u www-data python3 /usr/bin/django-admin compilemessages --pythonpath /usr/share/mailman3-web --settings settings CommandError: This script should be run from the Django Git checkout or your project or app tree, or with the settings module specified.
I'm working on ubuntu and I don't have (venv)$ The other commands (migrate, collectstatic and compress) worked fine. Kind regards
I don't know why this fails like that, particularly since the same thing works for migrate, collectstatic and compress.
The only thing I can think of is you may need to cd to the directory containing django/ django_mailman3/ postorius/ and /hyperkitty before doing the above. This may be something like /usr/lib/python3.x/site-packages.
If that doesn't work, since I think you are using the Debian/Ubuntu package, I suggest you try Debian for help.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank you very much for your help, Mark.
On 12/7/23 01:44, Mark Sapiro wrote:
The only thing I can think of is you may need to cd to the directory containing django/ django_mailman3/ postorius/ and /hyperkitty before doing the above. This may be something like /usr/lib/python3.x/site-packages.
Yes, that did it!
Previous command didn't work because of file permissions. So instead of sudoing the command as www-data, I just did "django-admin compilemessages" as root after changing to directory "/usr/lib/python3/dist-packages".
Kind regards Nils
participants (2)
-
Mark Sapiro
-
Nils