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

I created new module named "name" with title "Name". How to set its name translation? Editing name/i18n/lang.po does not work.

#. module: base
#: model:ir.module.module,shortdesc:base.module_name
msgid "Name"
msgstr "Translated Name"
อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

ir.module.module name field is technical name. shortdesc is Title. It already has translate=True. Core modules translates normally.

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

Hi Dmitry,

First of all you have to add translate=True as attribute of name field in ir.module.module model.

After that you can follow the steps of adding translation in PO file for python file.

Thanks,

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 21
3232
0
พ.ค. 20
2909
3
ธ.ค. 19
5194
0
เม.ย. 15
3583
1
มี.ค. 15
4409