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

Warning is not translated. Why?

By
Trong Danh
on 5/23/13, 6:42 AM 1,493 views

I go to Settings -> Application Terms -> Translated Terms

I found original string of my warning and value I translated, and it only exists once for every language.

But when I run it not translated.

Can you help me? Thanks in advance.

plz post an example of warning not translated.

Borni DHIFI
on 5/23/13, 7:17 AM

my example

msgalert = { 'title':_('My title'), 'message': _('My message') }

return {'warning':msgalert}

I want to translate 'My title' and 'My message' to other language. When i on_change on the textbox, example I want to display a warning as above in other language when I enter not correctly date with format dd/mm/yyyy.

Trong Danh
on 5/23/13, 8:31 AM

My message ??

Borni DHIFI
on 5/23/13, 8:34 AM

warning = {'title':_('Title'), 'message':_('Anything is not important')} I want to translate 'Title' & 'Anything is not important' to Vietnamese is 'Tiêu đề' & 'Mọi thứ không quan trọng'

Trong Danh
on 5/23/13, 8:44 AM

I have a problem when I use file.po to translate

My python code:

warning = {'title':_('Title'), 'message':_('Message')}

return {'warning': warning}

I export to file vi_VN.po contains:

#. module: base

#: code:addons\base\ir\ir_model.py:279

#, python-format

msgid "Title"

msgstr "Tiêu đề"

"Tiêu đề" is Vietnamese which language i want to translate to.

Then I place vi_VN.po in folder i18n in my project.

But i run it is not translated. Why?

Can you help me? Thanks in advance.

Trong Danh
on 5/23/13, 9:10 AM
0

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/23/13, 10:01 AM

Hi,

see this subject How to overwrite Translations?

Thank you very much! But i still get that bug. Hichic

Trong Danh
on 5/25/13, 5:30 AM

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

0 follower(s)

Stats

Asked: 5/23/13, 6:42 AM
Seen: 1493 times
Last updated: 3/16/15, 8:10 AM