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 by file.po or file.csv. Which better?

By
Trong Danh
on 5/21/13, 12:11 PM 955 views

As far as I know, every time we modify any line code so structure of file.po example is number of line will be changed. How to fix this problem? Those ways above, which better?

0

patrick

--patrick--
1958
| 5 4 7
Baarn, Netherlands
--patrick--
patrick
On 5/21/13, 4:13 PM

Define better solution.

Using file.csv means you have to import it every time.

Using file.po it will be installed automatically everytime you install the module (if you place the file in <module>/i18n/ ). I have run into the issue that sometimes the old translations are not correctly replaced, so that is an issue to keep an eye on. But that also can happen with file.csv.

Given the above information, I would use file.po.

I have a problem when I use file.po

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

file.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.

But i run it is not translated. Why?

Can you help me? Thanks in advance.

Trong Danh
on 5/23/13, 9:00 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/21/13, 12:11 PM
Seen: 955 times
Last updated: 3/16/15, 8:10 AM