← Back to team overview

openerp-expert-localization team mailing list archive

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



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


** 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 OpenERP
Localization Experts, which is a direct subscriber.

  Please use string formatting instead of concatenation

Status in OpenObject Addons Modules:

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