OCA / pylint-odoo

Odoo plugin for Pylint
http://www.pylint.org
143 stars 168 forks source link

It's allowed to translate term using different number of arguments #274

Closed luisg123v closed 4 years ago

luisg123v commented 4 years ago

A .po file is allowed to containg something like the following:

msgid "Customer %s was not found"
msgstr "Cliente no encontrado"

The above would pass CI, but will cause a traceback when the translated language is used, e.g.:
TypeError: not all arguments converted during string formatting

For a practical example, See https://github.com/OCA/account-invoicing/pull/679.

luisg123v commented 4 years ago

CC @moylop260 @edy1192