Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.16 KB

translations.md

File metadata and controls

58 lines (39 loc) · 1.16 KB

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

ClimWeb Translations

  1. Generate *.po translation files for locale folders listed in LOCALE_PATHS
export ENV DJANGO_SETTINGS_MODULE='climweb.config.settings.dev'
./climweb/src/climweb/manage.py makemessages -l fr
  1. Translate *.po locales files listed in LOCALE_PATHS
export ENV DJANGO_SETTINGS_MODULE='climweb.config.settings.dev' 
./climweb/src/climweb/manage.py manage.py translate_messages -l fr
  1. Build docs in target language (generate *.mo files)
export ENV DJANGO_SETTINGS_MODULE='climweb.config.settings.dev' 
./climweb/src/climweb/manage.py compilemessages