Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 934 Bytes

translations.md

File metadata and controls

55 lines (36 loc) · 934 Bytes

Manage Translations

Docs Translations

  1. While in docs directory, Generate *.po translation files
sphinx-build -b gettext . _build/gettext
pip install sphinx-intl
sphinx-intl update -p _build/gettext -l fr

  1. While at root of project, Translate *.po locales files listed in LOCALE_PATHS
python manage.py translate_messages -l fr

  1. While in docs directory, Build docs in target language (generate *.mo files)
sphinx-build -b html -D language=fr . _build/html/fr

CMS Translations

  1. Generate *.po translation files for locale folders listed in LOCALE_PATHS
python manage.py makemessages -l fr
  1. Translate *.po locales files listed in LOCALE_PATHS
python manage.py translate_messages -l fr
  1. Build docs in target language (generate *.mo files)
python manage.py compilemessages