Skip to content
Snippets Groups Projects
  • Martin Trigaux's avatar
    400cc4f1
    [FIX] *: correct all or improve code translation lookup · 400cc4f1
    Martin Trigaux authored
    
    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>
    400cc4f1
    History
    [FIX] *: correct all or improve code translation lookup
    Martin Trigaux authored
    
    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>