Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5284 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
6346