Odoo Help


Multiple language in openerp

Trong Danh
on 5/17/13, 4:59 AM 1,033 views

Main problem: I want to translate message to other language. I explain you: Having two ways to translate to other language: one is using file.csv; two is using file.po and file.pot. I should do follow what is one? How to translate via file.po and .pot? Can you guild me step by step?

I have two field: raise osv.except_ov(_('A'), _('B')) and msgalert = {'title':'C','message':'D'} val = {} val = { 'effective_date': '', } return {'value': val,'warning':msgalert} Why? when I export to file.csv contain A, B and not C, D.


Davide Corio

--Davide Corio--

| 5 4 7
Bricherasio, Italy
--Davide Corio--

Odoo Evangelist and Consultant

Davide Corio
On 5/17/13, 5:21 AM

Once your module is ready, you can export the .po file for your language via Configuration > Translations > Import/Export > Export Translation.

Then, you can edit the .po file using softwares like POEdit.

When you translated all the terms you just need to create an i18n folder inside you module folder and place the translated .po file there.

Run an upgrade of you module, refresh the page (sometimes you need to clean the browser's cache too) and you should see the translated labels.

? When I export the .po file field A, B not in it. This is code python: msgalert = {'title': 'A', 'message': 'B'}

Trong Danh
on 5/17/13, 6:55 AM

I know fix this bug. You can declare such as: msgalert = {'title':_('A'), 'message':_('B')}.

Trong Danh
on 5/17/13, 8:54 AM

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.


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

0 follower(s)


Asked: 5/17/13, 4:59 AM
Seen: 1033 times
Last updated: 3/16/15, 8:10 AM