Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
5446 Lượt xem

​In zh_CN of 12.0 CE, the record g/m/t of uom miss translation item , and the translation item of record "fl oz"  is incorrect.
So I make a po file to fix it.

#. module: uom
#: model:uom.uom,name:uom.product_uom_floz
msgid "fl oz"
msgstr "液盎司"

#. module: uom
#: model:uom.uom,name:uom.product_uom_meter
msgid "m"
msgstr "米"

#. module: uom
#: model:uom.uom,name:uom.product_uom_ton
msgid "t"
msgstr "吨"

#. module: uom
#: model:uom.uom,name:uom.product_uom_gram
msgid "g"
msgstr "克"

When I import this po file with --i18n-overwrite option, the reocrd g/m/t of uom is show translate name, but the translation of recode "fl oz" is not overwrite.

If I fix translate item for "fl oz" in uom module's i18n po file, this issue can be fix.

How to overwrite the translate terms of  uom.uom records without modify offical source?

Ảnh đại diện
Huỷ bỏ

You can participate in the community efforts and contribute to the translation on transifex.

Tác giả Câu trả lời hay nhất

@Waleed Mohsen

this solution not work for me.

Ảnh đại diện
Huỷ bỏ

Try to delete the old term from translated terms and import your file again.

Tác giả

Thank you!

I know this solution can fix this issue,

But I want to know why translation term is not overwriten.

I got the same issue with my translation as I did uninstall and install for a module many times and I got an orphan translation (not linked to module) and when I tried to overwrite them it's not worked with me so I delete them and overwrite them and it works with me.

Tác giả

I am thinking about thi: Is my operation method wrong? or it's a bug in Odoo, or does odoo not support the translation overwrite of model:name?

Câu trả lời hay nhất

I have created a file like yours and imported it with overwrite option and it's overwritten.

What you have to do is enable developer mode and go to settings -> Translations -> Translated Term and search for "fl oz" and see how many translation found for this term and you can translate it directly from there.    


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 23
5353
2
thg 3 22
2724
0
thg 3 15
3872
0
thg 3 15
4687
1
thg 3 15
5258