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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
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.
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
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse