[FIX] http_routing, web: fix translation on additional modules
Translations from non-standard modules on the website are not properly loaded, thus no translation is done even though translated terms are valid (e.g. signing a document shared). Step to reproduce the issue: 1) Install the sign module & Install French language (or any execpt English) 2) Disable the English language 3) Go to Sign and Share on document 4) Open the link You will see that the "Click to start" is not translated. Some other strings too. Solution: The issue appeared since commit [1]. In there, we changed the argument key for additional modules while it was not changed on the backend resulting in the module translation not loaded. Furthermore, in the backend the additional modules were appended as if they were a list while it is a string. [1]: https://github.com/odoo/odoo/commit/8cc066173dfb61bd95b8e1f0716f71f4e251810a opw-2842699 closes odoo/odoo#92546 X-original-commit: b4eaaaa567ea306e6e86d133c3a805145d9ea4d0 Related: odoo/enterprise#27906 Signed-off-by: Romain Derie (rde) <rde@odoo.com> Signed-off-by: Desausoi Laurent (lade) <lade@odoo.com>
This commit is contained in:
@@ -14,7 +14,7 @@ class Routing(Home):
|
||||
IrHttp = request.env['ir.http'].sudo()
|
||||
modules = IrHttp.get_translation_frontend_modules()
|
||||
if mods:
|
||||
modules += mods
|
||||
modules += mods.split(',')
|
||||
return WebClient().translations(unique, mods=','.join(modules), lang=lang)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user