[FIX] conf: translate the theme

Adding the templates_path to make the theme discoverable
Courtesy of https://blog.1a23.com/2020/03/07/translate-text-in-sphinx-templates-and-configurations/
This commit is contained in:
Martin Trigaux 2021-06-14 14:17:17 +02:00
parent a040ad6797
commit 3a915ce2d1
2 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,11 @@ file_filter = locale/<lang>/LC_MESSAGES/services.po
source_file = locale/sources/services.pot
source_lang = en
[odoo-12-doc.theme]
file_filter = locale/<lang>/LC_MESSAGES/sphinx.po
source_file = locale/sources/sphinx.pot
source_lang = en
[odoo-12-doc.user_settings]
file_filter = locale/<lang>/LC_MESSAGES/settings.po
source_file = locale/sources/settings.pot

View File

@ -130,6 +130,7 @@ github_user = 'odoo'
github_project = 'documentation'
locale_dirs = ['../locale/']
templates_path = ['../extensions']
# custom docname_to_domain to divide the translations of applications in subdirectories
sphinx.transforms.i18n.docname_to_domain = (