Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
6079 Näkymät

Hi folk,

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

Avatar
Hylkää

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

Paras vastaus

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.

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
heinäk. 15
5388
0
maalisk. 25
1766
4
huhtik. 24
174756
0
jouluk. 23
2486
5
heinäk. 25
229863