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

Hi folk,

How do we translate the python constraint message when the user is using some other language and not English?

อวตาร
ละทิ้ง

You çan use _ function from openerp tool! _('str translatable')

คำตอบที่ดีที่สุด

Hi Vivek,


You can differentiate current language based on context dictionary & by that way you can display your custom language constraint message.


Hope that helps! Please let me know if it still doesn't work.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 15
5646
0
มี.ค. 25
2070
4
เม.ย. 24
175287
0
ธ.ค. 23
2760
5
ก.ค. 25
231067