Skip to Content
Menu
This question has been flagged
3 Replies
3940 Views

​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?

Avatar
Discard

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

Author Best Answer

@Waleed Mohsen

this solution not work for me.

Avatar
Discard

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

Author

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.

Author

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?

Best Answer

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.    


Avatar
Discard
Related Posts Replies Views Activity
2
Mar 23
3798
2
Mar 22
1350
0
Mar 15
2772
0
Mar 15
3645
1
Mar 15
4098