canaille-globuzma/doc/locales
Éloi Rivard 4d9451158c
Translated using Weblate (French)
Currently translated at 94.4% (1167 of 1236 strings)

Translation: Canaille/Documentation
Translate-URL: https://hosted.weblate.org/projects/canaille/documentation/fr/
2024-12-19 14:13:48 +00:00
..
fr/LC_MESSAGES Translated using Weblate (French) 2024-12-19 14:13:48 +00:00
ta/LC_MESSAGES Update translation files 2024-12-19 10:19:59 +01:00
.gitignore chore: add a .gitignore file in the documentation locales dir 2024-11-25 10:19:51 +01:00
doc.pot doc: SCIM implementation details 2024-12-19 15:13:35 +01:00
readme.rst doc: fix documentation compilation warnings 2024-12-05 10:47:41 +01:00

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

The following commands are there as documentation, only the message extraction and the language addition is needed for contributors.

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

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

.. code-block:: bash

    sphinx-build --builder gettext doc doc/locales

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

    sphinx-intl update --pot-dir doc/locales --locale-dir doc/locales -l fr

Build the documentation in another language
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: bash

    sphinx-build --builder html --define language=fr doc build/sphinx/html/fr