Hello All,
I want to translate this box.
I already add _t in js, but it did not translate in other languages.
Here is my code,
JS code:
ajax.jsonRpc ("/ check_number /", 'call', {'check_number_code': check_number_code}). Then (
function (data) {
if (data == 'found') {
Dialog.alert (self, _t ("This number can not match."), {
Title: _t ('Input'),
});
self. val ('')
return false
}
});
});
PO file (es.po):
#. module: check_number_code_in_website
#. openerp-web
#: code: addons / check_number_code_in_website / static / src / js / numberreceipt.js: 96
#, python-format
msgid "This number can not match."
msgstr "Este número no puede coincidir."
I want to translate in Spanish(es_ES), Please help me out, it will very help to me.
Hi,
did you put this code on top?
var core = require('web.core'); var _t = core.t;
Yes, and also load my es.po file from setting -> Translation -> Import Translation, but it's didn't translate.