Odoo Help


This community 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.


Translate words in js file

on 2/10/16, 1:20 PM 336 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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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