Skip to content
Snippets Groups Projects
Commit 400cc4f1 authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[FIX] *: correct all or improve code translation lookup


This commit fixes all issues detected by the new pylint
gettext-variable test.
It converts some calls to the new syntax
  _("Foo %s", bar)

to progressively migrate the code to the new syntax.

A few calls were not technically incorrect but still detected by the
linter.

  _("Foo" +
    "Bar")

has been converted to

  _("Foo"
    "Bar")

as it has the same effect and make sure the argument is of type
asteroid.Const instead of BinOp).

closes odoo/odoo#53683

Related: odoo/enterprise#11467
Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
parent 241f06d8
No related branches found
No related tags found
Loading
Showing
with 87 additions and 52 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment