-
- Downloads
[FIX] base, website: fix no web translation on duplicates
TLDR: if we have a term in python and js code, then js translation may not work STEPS: * install point_of_sale * activate and switch to French translation * go to "Point of sale >> Reporting >> Orders" * Click "Time Ranges >> Range" BEFORE: "This Week" is not translated AFTER: All terms are translated WHY: * Translation imports merges translation if they have same src https://github.com/odoo/odoo/blob/1e39a2d3b8060963073a39d99ba3a14b07d03333/odoo/addons/base/models/ir_translation.py#L196 https://github.com/odoo/odoo/blob/1e39a2d3b8060963073a39d99ba3a14b07d03333/odoo/addons/base/models/ir_translation.py#L111 So, we get either js term for "This Week" or py term, but not both * web/webclient/translations loads only translation with comments==openerp-web https://github.com/odoo/odoo/blob/1e39a2d3b8060963073a39d99ba3a14b07d03333/odoo/addons/base/models/ir_translation.py#L900 So, if we don't have js term, then the translation is not loaded to UI * This only fix problem of no translation, but doesn't fix overriden translation (i.e. when same english term, e.g. Free, has different translation in frontend and backend). This part can be fixed by changing english term to something more unambiguous. --- opw-2357399 closes odoo/odoo#61641 Signed-off-by:Martin Trigaux (mat) <mat@odoo.com>
Loading
Please register or sign in to comment