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

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
5468
0
มี.ค. 25
1855
4
เม.ย. 24
174920
0
ธ.ค. 23
2558
5
ก.ค. 25
230217