1
0

translating.rst 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. Translating Documentation
  2. =========================
  3. If you wish to help translate the Salt documentation to your language, please
  4. head over to the `Transifex`_ website and `signup`__ for an account.
  5. Once registered, head over to the `Salt Translation Project`__, and either
  6. click on **Request Language** if you can't find yours, or, select the language
  7. for which you wish to contribute and click **Join Team**.
  8. `Transifex`_ provides some useful reading resources on their `support
  9. domain`__, namely, some useful articles `directed to translators`__.
  10. .. __: https://www.transifex.com/signup/
  11. .. __: https://www.transifex.com/projects/p/salt/
  12. .. __: http://support.transifex.com/
  13. .. __: http://support.transifex.com/customer/portal/topics/414107-translators/articles
  14. Building A Localized Version of the Documentation
  15. -------------------------------------------------
  16. While you're working on your translation on `Transifex`_, you might want to
  17. have a look at how it's rendering.
  18. Install The Transifex Client
  19. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  20. To interact with the `Transifex`_ web service you will need to install the
  21. `transifex-client`__:
  22. .. code-block:: bash
  23. pip install transifex-client
  24. .. __: https://github.com/transifex/transifex-client
  25. Configure The Transifex Client
  26. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  27. Once installed, you will need to set it up on your computer. We created a
  28. script to help you with that:
  29. .. code-block:: bash
  30. .scripts/setup-transifex-config
  31. Download Remote Translations
  32. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  33. There's a little script which simplifies the download process of the
  34. translations(which isn't that complicated in the first place).
  35. So, let's assume you're translating ``pt_PT``, Portuguese(Portugal). To
  36. download the translations, execute from the ``doc/`` directory of your Salt
  37. checkout:
  38. .. code-block:: bash
  39. make download-translations SPHINXLANG=pt_PT
  40. To download ``pt_PT``, Portuguese(Portugal), and ``nl``, Dutch, you can use the
  41. helper script directly:
  42. .. code-block:: bash
  43. .scripts/download-translation-catalog pt_PT nl
  44. Build Localized Documentation
  45. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  46. After the download process finishes, which might take a while, the next step is
  47. to build a localized version of the documentation.
  48. Following the ``pt_PT`` example above:
  49. .. code-block:: bash
  50. make html SPHINXLANG=pt_PT
  51. View Localized Documentation
  52. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  53. Open your browser, point it to the local documentation path and check the
  54. localized output you've just build.
  55. .. _`Transifex`: https://www.transifex.com