Skip to Content
Menu
This question has been flagged

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.
Tanks in advance
Riddhi
Avatar
Discard

Hi,

did you put this code on top?

var core = require('web.core'); var _t = core.t;

Author

Yes, and also load my es.po file from setting -> Translation -> Import Translation, but it's didn't translate.

Related Posts Replies Views Activity
0
Nov 24
77
0
Feb 24
324
0
Sep 22
803
1
May 21
1769
1
Apr 21
4445