canaille-globuzma/canaille/translations
Moha684 269d238a28
Translated using Weblate (Breton)
Currently translated at 10.8% (41 of 377 strings)

Translation: Canaille/Canaille
Translate-URL: https://hosted.weblate.org/projects/canaille/canaille/br/
2024-08-08 21:09:20 +02:00
..
br/LC_MESSAGES Translated using Weblate (Breton) 2024-08-08 21:09:20 +02:00
de/LC_MESSAGES Translated using Weblate (German) 2024-06-26 13:09:23 +02:00
es/LC_MESSAGES Translated using Weblate (Spanish) 2024-08-08 21:09:19 +02:00
fr/LC_MESSAGES Translated using Weblate (French) 2024-05-02 19:09:09 +02:00
gl/LC_MESSAGES Update translation files 2024-05-01 18:40:09 +02:00
nb_NO/LC_MESSAGES Update translation files 2024-05-01 18:40:09 +02:00
babel.cfg Automatically trims the HTML translated strings 2023-01-22 13:45:59 +01:00
messages.pot fix: translatable f-string 2024-05-01 18:39:59 +02:00
README.rst doc: features and use cases documentation 2024-05-21 11:07:07 +02:00

Translations are done with `Weblate <https://hosted.weblate.org/projects/canaille/canaille>`_.

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


Message extraction
~~~~~~~~~~~~~~~~~~

After you have edited translatable strings, you should extract the messages with:

.. code-block:: bash

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

Language addition
~~~~~~~~~~~~~~~~~

You can add a new language manually with the following command, however this should not be needed as Weblate takes car of this:

.. code-block:: bash

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

Catalog update
~~~~~~~~~~~~~~

You can update the catalogs with the following command, however this should not be needed as Weblate automatically update language catalogs when it detects new strings or when someone translate some existing strings.
Weblate pushes happen every 24h.

.. code-block:: bash

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

Catalog compilation
~~~~~~~~~~~~~~~~~~~

You can compile the catalogs with the following command, however this should not be needed as catalogs are automatically compiled before running the unit tests, before launching the demo and before compiling the Canaille python package:

.. code-block:: bash

    pybabel compile --directory canaille/translations --statistics