Odoo Help


Translate words in js file

on 2/10/16, 1:20 PM 537 views

Hi all,

I want to translate the strings of js file, translates them correctly if I'm logged in Odoo 8, when I close the session does not display strings translated, the code to perform the translation in the js file is:

var _t = openerp._t;

       var msg_1 = _t("Invalid email Please enter a valid email!")




and in the file .pot:

#. module: website_notificar_stock

#. openerp-web

#: code:addons/website_notificar_stock/static/src/js/notificar.js:14

#, python-format

msgid "Invalid email Please enter a valid email!"

msgstr "Correo electrónico incorrecto Por favor introduce un correo electrónico válido!"

Anyone see where you can be the problem, thanks and greetings

Carles Antolí

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/10/16, 1:20 PM
Seen: 537 times
Last updated: 2/10/16, 1:29 PM