openerp-expert-localization team mailing list archive
-
openerp-expert-localization team
-
Mailing list archive
-
Message #00231
[Bug 684741] Re: Please use string formatting instead of concatenation
all the suggested files/portion of code have been improved with string
formatting instead of string concatenation. We will continue improving
this as soon as possible, in th e meanwhile i'm setting this wishlist as
"fixed released", for the sake of clarity in LP.
Thanks for the contribution Numérigraphe,
Quentin.
** Changed in: openobject-addons
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of OpenERP
Localization Experts, which is a direct subscriber.
https://bugs.launchpad.net/bugs/684741
Title:
Please use string formatting instead of concatenation
Status in OpenERP Modules (addons):
Fix Released
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