translation.rst 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .. _translation:
  2. ===========
  3. Translation
  4. ===========
  5. .. _weblate.bubu1.eu: https://weblate.bubu1.eu/projects/searxng/
  6. Translation takes place on `weblate.bubu1.eu`_ ( `documentation <https://docs.weblate.org/en/latest/index.html>`_ ).
  7. New messages on the master branch are extracted and pushed to Weblate automatically.
  8. Every Friday, a GitHub workflow creates a pull request with the updated translations (messages.mo, messages.po, messages.mo files).
  9. .. image:: https://weblate.bubu1.eu/widgets/searxng/-/searxng/svg-badge.svg
  10. :target: https://weblate.bubu1.eu/projects/searxng/
  11. Weblate integration
  12. ===================
  13. Weblate monitors the `translations branch <https://github.com/searxng/searxng/tree/translations>`_, not the master branch.
  14. This branch contains only the .pot and pot files, nothing else.
  15. Documentation
  16. -------------
  17. * `wlc <https://docs.weblate.org/en/latest/wlc.html>`_
  18. * `pybabel <http://babel.pocoo.org/en/latest/cmdline.html>`_
  19. * `weblate workflow <https://docs.weblate.org/en/latest/workflows.html>`_
  20. Worfklow
  21. --------
  22. .. image:: translation.svg
  23. wlc
  24. ---
  25. 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>`_ :
  26. .. code-block:: ini
  27. [keys]
  28. https://weblate.bubu1.eu/api/ = APIKEY
  29. Replace `APIKEY` by `your API key <https://weblate.bubu1.eu/accounts/profile/#api>`_.