Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
5273 Widoki

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

Awatar
Odrzuć

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

Autor Najlepsza odpowiedź

@Waleed Mohsen

this solution not work for me.

Awatar
Odrzuć

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

Autor

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.

Autor

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?

Najlepsza odpowiedź

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.    


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
mar 23
5178
2
mar 22
2559
0
mar 15
3707
0
mar 15
4520
1
mar 15
5087