Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4520 มุมมอง

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
อวตาร
ละทิ้ง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 25
6735
0
ก.พ. 25
1499
1
ม.ค. 25
2348
0
พ.ย. 24
1473
0
ก.ย. 22
803