searxng/docs/dev/translation.rst

50 lines
1.4 KiB
ReStructuredText
Raw Normal View History

.. _translation:
===========
2015-11-17 22:13:30 +00:00
Translation
===========
.. _weblate.bubu1.eu: https://weblate.bubu1.eu/projects/searxng/
Translation takes place on `weblate.bubu1.eu`_ ( `documentation <https://docs.weblate.org/en/latest/index.html>`_ ).
2015-11-17 22:13:30 +00:00
New messages on the master branch are extracted and pushed to Weblate automatically.
2015-11-17 22:13:30 +00:00
Every Friday, a GitHub workflow creates a pull request with the updated translations (messages.mo, messages.po, messages.mo files).
.. image:: https://weblate.bubu1.eu/widgets/searxng/-/searxng/svg-badge.svg
:target: https://weblate.bubu1.eu/projects/searxng/
2015-11-17 22:13:30 +00:00
Weblate integration
===================
2015-11-17 22:13:30 +00:00
Weblate monitors the `translations branch <https://github.com/searxng/searxng/tree/translations>`_, not the master branch.
2015-11-17 22:13:30 +00:00
This branch contains only the .pot and pot files, nothing else.
2015-11-17 22:13:30 +00:00
Documentation
-------------
2015-11-17 22:13:30 +00:00
* `wlc <https://docs.weblate.org/en/latest/wlc.html>`_
* `pybabel <http://babel.pocoo.org/en/latest/cmdline.html>`_
* `weblate workflow <https://docs.weblate.org/en/latest/workflows.html>`_
2015-11-17 22:13:30 +00:00
Worfklow
--------
2015-11-17 22:13:30 +00:00
.. image:: translation.svg
2015-11-17 22:13:30 +00:00
wlc
---
2015-11-17 22:13:30 +00:00
All weblate integration is done by GitHub workflows, but if you want to use wlc, copy this content into `~/.config/weblate <https://docs.weblate.org/en/latest/wlc.html#wlc-config>`_ :
2015-11-17 22:13:30 +00:00
.. code-block:: ini
2015-11-17 22:13:30 +00:00
[keys]
https://weblate.bubu1.eu/api/ = APIKEY
2015-11-17 22:13:30 +00:00
Replace `APIKEY` by `your API key <https://weblate.bubu1.eu/accounts/profile/#api>`_.