Please use string formatting instead of concatenation
Bug #684741 reported by
Numérigraphe
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Wishlist
|
OpenERP R&D Addons Team 2 |
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
Related branches
lp:~openerp-dev/openobject-addons/trunk-bug-684741-rha
- OpenERP buildbot (community): Needs Fixing
- qdp (OpenERP): Pending requested
-
Diff: 1040 lines (+228/-195)29 files modifiedaccount/account.py (+10/-10)
account/account_bank_statement.py (+1/-2)
account/i18n/account.pot (+11/-17)
account/invoice.py (+1/-1)
account_followup/i18n/account_followup.pot (+6/-6)
account_followup/wizard/account_followup_print.py (+3/-3)
base_module_quality/i18n/base_module_quality.pot (+1/-2)
base_module_quality/speed_test/speed_test.py (+1/-1)
crm/crm_lead.py (+1/-1)
crm/i18n/crm.pot (+6/-0)
email_template/email_template.py (+2/-2)
email_template/i18n/email_template.pot (+1/-1)
mail_gateway/i18n/mail_gateway.pot (+4/-4)
mail_gateway/mail_gateway.py (+4/-4)
mrp/report/price.py (+18/-13)
project/i18n/project.pot (+6/-0)
project/wizard/project_task_delegate.py (+1/-1)
project_scrum/i18n/project_scrum.pot (+29/-37)
project_scrum/project_scrum.py (+3/-3)
project_scrum/wizard/project_scrum_backlog_sprint.py (+2/-2)
sale_crm/i18n/sale_crm.pot (+2/-7)
sale_crm/wizard/crm_make_sale.py (+1/-1)
share/i18n/share.pot (+5/-3)
share/wizard/share_wizard.py (+2/-2)
stock/i18n/stock.pot (+17/-23)
stock/stock.py (+3/-3)
stock/wizard/stock_change_product_qty.py (+1/-1)
stock_planning/i18n/stock_planning.pot (+43/-6)
stock_planning/stock_planning.py (+43/-39)
To post a comment you must log in.
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