-
- Downloads
[IMP] tools: add placeholder support to _
Mimic the syntax of logging to use placeholders in translatable message. The main advantage is to be able to fallback on the source term if the translation can not be formatted properly. It is very common to have errors in translations with missing placeholders or badly translated (ie. the source "%(subject)s" -> "%(sujet)s"). Instead of blocking the execution of the code, fallback on source string. Task-id: 1853119
Showing
- doc/reference/guidelines.rst 18 additions, 14 deletionsdoc/reference/guidelines.rst
- doc/reference/translations.rst 6 additions, 5 deletionsdoc/reference/translations.rst
- odoo/addons/test_translation_import/tests/test_term_count.py 66 additions, 0 deletionsodoo/addons/test_translation_import/tests/test_term_count.py
- odoo/tools/translate.py 12 additions, 2 deletionsodoo/tools/translate.py
Loading
Please register or sign in to comment