From 3a915ce2d1d432b78648fd2e59bc31818695dc10 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 14 Jun 2021 14:17:17 +0200 Subject: [PATCH] [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/ --- .tx/config | 5 +++++ conf.py | 1 + 2 files changed, 6 insertions(+) diff --git a/.tx/config b/.tx/config index 2b6ae98b8..f48963cf5 100644 --- a/.tx/config +++ b/.tx/config @@ -42,6 +42,11 @@ file_filter = locale//LC_MESSAGES/services.po source_file = locale/sources/services.pot source_lang = en +[odoo-12-doc.theme] +file_filter = locale//LC_MESSAGES/sphinx.po +source_file = locale/sources/sphinx.pot +source_lang = en + [odoo-12-doc.user_settings] file_filter = locale//LC_MESSAGES/settings.po source_file = locale/sources/settings.pot diff --git a/conf.py b/conf.py index b5fde0d2b..07452c3c5 100644 --- a/conf.py +++ b/conf.py @@ -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 = (