summaryrefslogtreecommitdiff
path: root/odoo/addons/test_lint/tests/__init__.py
diff options
context:
space:
mode:
authorChristophe Monniez <moc@odoo.com>2021-02-22 10:41:02 +0000
committerChristophe Monniez <moc@odoo.com>2021-03-19 10:35:55 +0000
commit9184ae45e0df179fc093c1fc48a7fa56d8fe9594 (patch)
tree04d93f222e071f688137acce243d16b96d998307 /odoo/addons/test_lint/tests/__init__.py
parent0f6fdce76809af7e965f672970d74594a337f6fb (diff)
[IMP] tests: add a test to avoid translations of template strings
When a template string that contains an expression is translated, the resulting msgid is wrong. e.g.: _t(`blah blah ${expression}`) will generate a wrong msgid like this: msgid "blah blah ${expression}" With this commit, a new test is added to find and forbid translations of JS template-strings. closes odoo/odoo#68126 Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Diffstat (limited to 'odoo/addons/test_lint/tests/__init__.py')
-rw-r--r--odoo/addons/test_lint/tests/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/addons/test_lint/tests/__init__.py b/odoo/addons/test_lint/tests/__init__.py
index b8416fe62bf..f9bf576a3ff 100644
--- a/odoo/addons/test_lint/tests/__init__.py
+++ b/odoo/addons/test_lint/tests/__init__.py
@@ -4,3 +4,4 @@ from . import test_ecmascript
from . import test_markers
from . import test_onchange_domains
from . import test_dunderinit
+from . import test_jstranslate