On 11/2/21 20:15, Mark Sapiro wrote:
On 2/11/21 3:47 AM, Guillermo Hernandez (Oldno7) via Mailman-users wrote:
I contributed in january to translate to spanish all the items left in Mailman Core, Django-mailman, HyperKitty and Postorius via Weblate. I thought they will be used in the next upgrade, but I cannot see any improvement and there are many words untranslated.
The Spanish translations for Mailman core and HyperKitty are currently completely up to date with weblate. django-mailman3 differs in one string that was translated on Feb 10 and hasn't yet been merged. Postorius also differs in a few places from the Feb 10 version that hasn't yet been merged.
Ok. Thanks for checking it. I put my little contribution in Weblate and I like that it could be used by anyone.
Other than that, the translations should be good.
Is there any way to upgrade the .po files in order to get the last translation?
For the web UI you need to run the django management
compilemessages
command.
I tried to run this using the same command as I did for the "collectstatic" (that solved all my previous problems for the upgrade) and "migrate" runs but it shows me an error:
su -m mailman3 -c "python3 manage.py compilemessages" CommandError: This script should be run from the Django Git checkout or your project or app tree, or with the settings module specified.
if I try with --settings param (for I missunderstood the error message) it shows the same:
su -m mailman3 -c "python3 manage.py compilemessages --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 tried to find any doc regarding the use of the "compilemessages" command but I couldn't
As far as I can see (I runned it with -h parm) this had to be related to the main python module, but I cannot understand why the pip upgrade did not do the job.
I'm lost.
Can you, please, point me in the right direction?
For Mailman core you need to run
cd mailman/messages/es/LC_MESSAGES msgfmt -o mailman.mo mailman.po
to compile the mailman.po file for gettext.