İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6102 Görünümler

I have an Error message that needs to be displayed in Spanish using internationalization but the internalization does not seem to work for osv.except_osv

raise osv.except_osv(('Warning'), (' First name is Mandatory ') )

How do I solve this issue ?

Avatar
Vazgeç
En İyi Yanıt

It is easy like that...

Import the method: from openerp.tools.translate import _

And use the method to make your python text translateable...

raise osv.except_osv(_('Warning'), _(' First name is Mandatory ') )

That's it!

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Haz 16
5330
3
Ara 15
1367
0
Mar 15
3718
0
Şub 19
5536
0
Ağu 15
3770