Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 959 Bytes

File metadata and controls

22 lines (17 loc) · 959 Bytes

otree.readthedocs.io

  1. Fork & download this repo
  2. Go to locales/ and edit the .po files using poedit or simply using a text editor
  3. pip install -r requirements.txt
  4. If translating to Japanese: sphinx-build -b html -D language=ja source build/html/ja
  5. If translating to Chinese: sphinx-build -b html -D language=zh_CN source build/html/zh_CN
  6. If translating to Spanish: sphinx-build -b html -D language=es source build/html/es
  7. Open the HTML files in your browser and check that they look OK
  8. git commit
  9. Make a pull request on GitHub.

Then, your changes will be visible at:

https://otree.readthedocs.io/ja/latest/index.html

To generate new .po files after an update to the English version, run:

sphinx-build -b gettext source build/gettext
sphinx-intl update -p build/gettext -l zh_CN -l ja