Sunday, May 24, 2026
1 change · saas-19.2
Resolved issues and error corrections
This update enhances the website translation process by fixing formatting issues like trimmed spaces and preserving text meaning. It also improves the handling of metadata attributes (alt, title, etc.) and prevents multiple translation requests, ensuring more accurate and reliable translations across the Odoo website.
Original PR description
This commit fixes and improves several aspects of the recently merged [translate the whole page]. - Fix formatting issues in the translation like: - Space getting removed while translating - Meaning…
This commit fixes and improves several aspects of the recently merged
[translate the whole page].
- Fix formatting issues in the translation like:
- Space getting removed while translating
- Meaning of text is not preserved after translation.
- Example :
- 'Enhance Your' and '<b>Experience</b>' becomes, 'Enhance Your<b>Enhance Your Experience</b>'
- 'hello <b>world</b>' becomes 'Hola<b>mundo</b>' space is trimmed.
- Exclude non-translatable elements such as `.o_brand_promotion` from
translation.
- Support metadata translation, ensuring that translatable attributes
are correctly handled (`alt`, `title`, `placeholder`, and `value`
attributes).
- Disable the “Translate” button while the translation process is
running to prevent multiple concurrent requests.
[translate the whole page]: https://github.com/odoo/odoo/commit/6e1e359ec6a7ae23cfa7d7c96380f845c7fdcfe5
task-5047714
Forward-Port-Of: odoo/odoo#266216
Forward-Port-Of: odoo/odoo#229894