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

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"
Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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,

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 21
3167
0
thg 5 20
2855
3
thg 12 19
5098
0
thg 4 15
3512
1
thg 3 15
4323