Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
137 Vistas

I want to updated translated terms from a custom module. The translations are in JS and are correctly loaded in the frontend, but some terms are wrong so i want to update them. 

(1) I exported de_CH po file for this module from Settings -> Translations
(2) Then i opened the fiel in POEdit. I only changed one Term for testing. 
(3) I Imported the file again as de_CH. 
(4) Then i exported it again, and the Term was not updated. 
I correctly set the "Update existing Terms" on import. 

In what case can this happen? How can i fix it?

Best regards, 
Nate

Avatar
Descartar
Autor Mejor respuesta

Hi there 

I could not solve this issue by importing translations. I changed the translations directly in the code, updated the module, then it worked.

Avatar
Descartar
Mejor respuesta

Hi,

When updating translated terms in a custom Odoo module's JavaScript files, several factors can prevent the changes from taking effect. First, ensure POEdit is configured to use UTF-8 encoding and that you save the file after making changes. In Odoo, double-check that you've selected "Update existing Terms" during import, verified the correct language code (de_CH), and chosen the right module.

The most common issue is browser caching, so clear your browser cache (or do a hard refresh) and the Odoo JavaScript cache. Verify that the JavaScript translation files are in the correct directory, named correctly, and that your JavaScript code uses the _t() function. The msgid in your PO file must exactly match the term in your JavaScript code. If problems persist, try restarting the Odoo server, upgrading the module, checking for overriding translations, and running a database integrity check.


Hope it helps

Avatar
Descartar