summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2020-06-23 14:45:53 +0000
committerMartin Trigaux <mat@odoo.com>2020-06-30 10:19:59 +0000
commit241f06d868296f6e2ef851d6f5d156f59f630b00 (patch)
treec8c0b9cc7f40c23b6922287331b275e499809243 /doc/reference/javascript_reference.rst
parent110263df56933abe885d1c4058afa5a0669e5aa9 (diff)
[ADD] test_lint: add test to detect bad usages of _
More often than it should, translations calls are made using _("Foo %s" % bar) instead of _("Foo %s") % bar or the even better (but more recent) _("Foo %s", bar) The issue of using the first writing is that the translation lookup won't work at the execution (looking for ir.translation for src "Foo Alice", "Foo Bob",... instead of "Foo %s"). Add a pylint test to ensure this won't happen anymore
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions