canaille-globuzma/canaille/translations
2024-03-27 13:57:38 +01:00
..
de/LC_MESSAGES Update translation files 2023-08-15 17:04:36 +02:00
es/LC_MESSAGES fix: translation compilation warnings 2023-09-11 18:15:42 +02:00
fr/LC_MESSAGES Translated using Weblate (French) 2023-08-16 17:54:29 +02:00
gl/LC_MESSAGES fix: translation compilation warnings 2023-09-11 18:15:42 +02:00
nb_NO/LC_MESSAGES fix: translation compilation warnings 2023-09-11 18:15:42 +02:00
babel.cfg Automatically trims the HTML translated strings 2023-01-22 13:45:59 +01:00
messages.pot feat: created and last_modified model attributes 2024-03-27 13:57:38 +01:00
README.md feat: password good practice message on the settings page 2023-07-28 19:17:26 +02:00

Translations are done with weblate. Those commands are there as documentation, only the message extraction is needed for contributors. All the other steps are automatically done with Weblate.

Extract the messages with:

pybabel extract --mapping-file canaille/translations/babel.cfg --copyright-holder="Yaal Coop" --output-file canaille/translations/messages.pot canaille

Add a new language with:

pybabel init --input-file canaille/translations/messages.pot --output-dir canaille/translations --locale <LANG>

Update the catalogs with:

pybabel update --input-file canaille/translations/messages.pot --output-dir canaille/translations --ignore-obsolete --no-fuzzy-matching --update-header-comment

Compile the catalogs with:

pybabel compile --directory canaille/translations --statistics