-
- Downloads
[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
Please register or sign in to comment