/otree-docs

Primary LanguagePythonOtherNOASSERTION

otree.readthedocs.io

If you know Japanese, please help contribute a translation!

  1. (Optional) Send an email to chris@otree.org just to let me know you will be doing some translation. Maybe I can give you some advice in addition to what is written here.
  2. Fork & download this repo
  3. Go to locales/ and edit the .po files using poedit or simply using a text editor
  4. pip install -r requirements.txt
  5. If translating to Japanese: sphinx-build -b html -D language=ja source build/html/ja
  6. If translating to Chinese: sphinx-build -b html -D language=zh_CN source build/html/zh_CN
  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