Odoo Help

Welcome!

This community 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.

0

translate warning message

By
Trong Danh
on 5/16/13, 12:18 AM 1,337 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--
5102
| 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?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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