2019-12-12 18:20:56 +00:00
.. _translation:
===========
2015-11-17 22:13:30 +00:00
Translation
===========
2021-08-05 11:57:48 +00:00
.. _weblate.bubu1.eu: https://weblate.bubu1.eu/projects/searxng/
2019-12-12 18:20:56 +00:00
2021-08-05 11:57:48 +00:00
Translation takes place on `weblate.bubu1.eu`_ ( `documentation <https://docs.weblate.org/en/latest/index.html> `_ ).
2015-11-17 22:13:30 +00:00
2021-08-05 11:57:48 +00:00
New messages on the master branch are extracted and pushed to Weblate automatically.
2015-11-17 22:13:30 +00:00
2021-08-05 11:57:48 +00:00
Every Friday, a GitHub workflow creates a pull request with the updated translations (messages.mo, messages.po, messages.mo files).
2016-01-21 15:25:40 +00:00
2021-08-05 11:57:48 +00:00
.. 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
2021-08-05 11:57:48 +00:00
Weblate integration
===================
2015-11-17 22:13:30 +00:00
2021-08-05 11:57:48 +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
2021-08-05 11:57:48 +00:00
This branch contains only the .pot and pot files, nothing else.
2015-11-17 22:13:30 +00:00
2021-08-05 11:57:48 +00:00
Documentation
-------------
2015-11-17 22:13:30 +00:00
2021-08-05 11:57:48 +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
2021-08-05 11:57:48 +00:00
Worfklow
--------
2015-11-17 22:13:30 +00:00
2021-08-05 11:57:48 +00:00
.. image :: translation.svg
2015-11-17 22:13:30 +00:00
2021-08-05 11:57:48 +00:00
wlc
---
2015-11-17 22:13:30 +00:00
2021-08-05 11:57:48 +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
2021-08-05 11:57:48 +00:00
.. code-block :: ini
2015-11-17 22:13:30 +00:00
2021-08-05 11:57:48 +00:00
[keys]
https://weblate.bubu1.eu/api/ = APIKEY
2015-11-17 22:13:30 +00:00
2021-08-05 11:57:48 +00:00
Replace `APIKEY` by `your API key <https://weblate.bubu1.eu/accounts/profile/#api> `_ .