Translation¶
Install dependencies¶
Install Sphinx, sphinx-intl and Transifex CLI:
pip install sphinx sphinx-intl
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
Create Transifex configuration:
sphinx-intl create-txconfig
Extract strings to translate¶
sphinx-build -nW --keep-going -q -b gettext docs/ docs/_build/gettext
Update Transifex configuration¶
sphinx-intl update-txconfig-resources \
--pot-dir docs/_build/gettext \
--locale-dir docs/locale \
--transifex-organization-name open-contracting-partnership-1 \
--transifex-project-name cardinal
Push to Transifex¶
tx push -s
Pull from Transifex¶
tx pull -f -a