Odoo Help

0

translate warning message

By
Trong Danh
on 5/16/13, 12:18 AM 1,446 views

I want to translate from english to other language example VietNam

msgalert = {'title':'Tittle','message':'text'}

val = {}

        return {'value': val,'warning':msgalert}

When i show pop-up, I want my warning is:

'title':'Tiêu đề'; 'message':'Thông tin cảnh báo'

Someone could help me?

1

Borni DHIFI

--Borni DHIFI--
5122
| 6 8 9
Tunis, Tunisia
--Borni DHIFI--

Techno Functional Consultant Odoo(OpenERP) 

http://www.linkedin.com/in/borni

Skype : dhifi.borni

Borni DHIFI
On 5/16/13, 6:21 AM

Hi,

from openerp.tools.translate import _

val = {}
warning = {'title': _('Your Title!'),
            'message': _('Your Message')
           }
 return {'value': val,'warning':msgalert}

install your module and export translate file menu Settings>>Export translation.

the steps Complete : Here

Thanks.

0
Trong Danh
On 5/22/13, 1:27 PM

I did that but it has not translated yet. Why?

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 5/16/13, 12:18 AM
Seen: 1446 times
Last updated: 5/10/16, 2:22 AM