-
- Downloads
[FIX] translate.py: fallback on base lang if noterm
When there is a language and its base language translation files in a module, in 12.0 an empty translation in the language translation file will not fallback on the base language. eg. fr.po : {'one': 'un', 'seventy': 'soixante-dix'} fr_BE.po: {'one': '', 'seventy': 'septante'} => the translation in fr_BE will be {'one': '', 'seventy': 'septante'} but before 7288b477 it would have been {'one': 'un', 'seventy': 'septante'} With this commit, an empty translation is no longer created so does not override base language. Also the intention of d84b795b that was also lost is restored by upserting only noupdate==false translation, and inserting the other ones. opw-1904638 closes #28297
Showing
- odoo/addons/base/models/ir_translation.py 14 additions, 9 deletionsodoo/addons/base/models/ir_translation.py
- odoo/addons/test_translation_import/i18n/fr_BE.po 35 additions, 0 deletionsodoo/addons/test_translation_import/i18n/fr_BE.po
- odoo/addons/test_translation_import/tests/test_term_count.py 43 additions, 10 deletionsodoo/addons/test_translation_import/tests/test_term_count.py
- odoo/tools/translate.py 4 additions, 0 deletionsodoo/tools/translate.py
Loading
Please register or sign in to comment