1
0
mirror of https://github.com/searxng/searxng.git synced 2024-09-13 00:36:39 +02:00
searxng/docs/dev/translation.rst

50 lines
1.4 KiB
ReStructuredText
Raw Normal View History

.. _translation:
===========
2015-11-17 23:13:30 +01: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 23:13:30 +01:00
New messages on the master branch are extracted and pushed to Weblate automatically.
2015-11-17 23:13:30 +01: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 23:13:30 +01:00
Weblate integration
===================
2015-11-17 23:13:30 +01:00
Weblate monitors the `translations branch <https://github.com/searxng/searxng/tree/translations>`_, not the master branch.
2015-11-17 23:13:30 +01:00
This branch contains only the .pot and pot files, nothing else.
2015-11-17 23:13:30 +01:00
Documentation
-------------
2015-11-17 23:13:30 +01: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 23:13:30 +01:00
Worfklow
--------
2015-11-17 23:13:30 +01:00
.. image:: translation.svg
2015-11-17 23:13:30 +01:00
wlc
---
2015-11-17 23:13:30 +01: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 23:13:30 +01:00
.. code-block:: ini
2015-11-17 23:13:30 +01:00
[keys]
https://weblate.bubu1.eu/api/ = APIKEY
2015-11-17 23:13:30 +01:00
Replace `APIKEY` by `your API key <https://weblate.bubu1.eu/accounts/profile/#api>`_.