- While in docs directory, Generate *.po translation files
sphinx-build -b gettext . _build/gettext
sphinx-intl update -p _build/gettext -l fr
- While at root of project, Translate *.po locales files listed in LOCALE_PATHS
python manage.py translate_messages -l fr
- While in docs directory, Build docs in target language (generate *.mo files)
sphinx-build -b html -D language=fr . _build/html/fr
- 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
- 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
- Build docs in target language (generate *.mo files)
export ENV DJANGO_SETTINGS_MODULE='climweb.config.settings.dev'
./climweb/src/climweb/manage.py compilemessages