[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:
parent
a040ad6797
commit
3a915ce2d1
@ -42,6 +42,11 @@ file_filter = locale/<lang>/LC_MESSAGES/services.po
|
|||||||
source_file = locale/sources/services.pot
|
source_file = locale/sources/services.pot
|
||||||
source_lang = en
|
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]
|
[odoo-12-doc.user_settings]
|
||||||
file_filter = locale/<lang>/LC_MESSAGES/settings.po
|
file_filter = locale/<lang>/LC_MESSAGES/settings.po
|
||||||
source_file = locale/sources/settings.pot
|
source_file = locale/sources/settings.pot
|
||||||
|
1
conf.py
1
conf.py
@ -130,6 +130,7 @@ github_user = 'odoo'
|
|||||||
github_project = 'documentation'
|
github_project = 'documentation'
|
||||||
|
|
||||||
locale_dirs = ['../locale/']
|
locale_dirs = ['../locale/']
|
||||||
|
templates_path = ['../extensions']
|
||||||
|
|
||||||
# custom docname_to_domain to divide the translations of applications in subdirectories
|
# custom docname_to_domain to divide the translations of applications in subdirectories
|
||||||
sphinx.transforms.i18n.docname_to_domain = (
|
sphinx.transforms.i18n.docname_to_domain = (
|
||||||
|
Loading…
Reference in New Issue
Block a user