From 8d0a400d863718f3ac916186220f56554496ef12 Mon Sep 17 00:00:00 2001 From: "Louis (wil)" Date: Fri, 2 Feb 2024 15:56:40 +0100 Subject: [PATCH] [FIX] tools: do not export slot params for translation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Slot params are dynamic content, similar to props, and are not translated. There is no point in adding untranslated content to the .pot files; so this commit prevents the content of slot params from being exported for translation. Task-3718993. closes odoo/odoo#152606 X-original-commit: b839faf09be259ffdccf9d872e646e4ebe4a8bcb Signed-off-by: Géry Debongnie Signed-off-by: Louis Wicket (wil) --- odoo/tools/translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/tools/translate.py b/odoo/tools/translate.py index 50866ffb37e..944f092186f 100644 --- a/odoo/tools/translate.py +++ b/odoo/tools/translate.py @@ -943,7 +943,7 @@ def _extract_translatable_qweb_terms(element, callback): # them all lower case. # https://www.w3schools.com/html/html5_syntax.asp # https://github.com/odoo/owl/blob/master/doc/reference/component.md#composition - if not el.tag[0].isupper() and 't-component' not in el.attrib: + if not el.tag[0].isupper() and 't-component' not in el.attrib and 't-set-slot' not in el.attrib: for att in ('title', 'alt', 'label', 'placeholder', 'aria-label'): if att in el.attrib: _push(callback, el.attrib[att], el.sourceline)