Daily updates from Odoo
Friday, August 18, 2023
1 change
Code cleanup and technical improvements
This update standardizes how text is prepared for translation across many Odoo Enterprise screens. It helps ensure labels and titles in the interface are correctly picked up for translation, improving consistency for users working in different languages.
Original PR description
In this commit, all usages of env._t() are replaced by _t(). In templates files, env._t() didn't work because terms used in attributes where not extracted into the translation files. Only string are exported from .xml files to translation files. So, to make it works, we set a variable that is then used in attributes. For example : ``` <t t-set="string_to_translate">String to translate</t> <Dialog title="string_to_translate>...</Dialog> ``` task-3292454 PR Community : https://github.com/odoo/odoo/pull/131390