← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 684741] Re: Please use string formatting instead of concatenation

 

Hello,

Once you(Addons2 team) make changes into your modules, please assign
this bug to the other teams to make changes in their modules.

Thanks

** Changed in: openobject-addons
   Importance: Undecided => Wishlist

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 2 (openerp-dev-addons2)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/684741

Title:
  Please use string formatting instead of concatenation

Status in OpenObject Addons Modules:
  Confirmed

Bug description:
  In the current trunk there are still a few places in the code where translatable strings are composed using concatenation ("+" operator) instead of string formatting ("%" operator).
That makes them hard to translate. Could you please refactor those portions of the code ?

Suspects can be found using this command on GNU/Linux : find . -name '*.py' -exec grep -RHn "_([^)]*) +" '{}' ';'.
Current results are in the file attached.

This is not an emergency - if you fix this before 6.0 is released, please do warn all the translators because the strings will have to be translated again.

Lionel Sausin





References