diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2018-10-30 15:09:50 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2018-11-07 09:07:02 +0000 |
| commit | 233bae7de957d9458a927f3812bd1c5bf03d87cc (patch) | |
| tree | 0e9ef64f1034bef2aeb947ac324d1d091a750216 /addons/mail/static/src/js/thread_widget.js | |
| parent | d63e72853b299483e845115c868efc3bd16a1ddf (diff) | |
[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 d84b795b0a6 that was also lost is restored by
upserting only noupdate==false translation, and inserting the other
ones.
opw-1904638
closes #28297
Diffstat (limited to 'addons/mail/static/src/js/thread_widget.js')
0 files changed, 0 insertions, 0 deletions
