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

I inherited res_partner, the problem is that I would like to change the translation of a single word. In Italian the word "name" is translated as "nome" but also the word "first name" translates as "nome". what I would like to do is change the translation of res_partner to change the "name" (first name + last name) to "Full name". How can I do?

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

Hi,

1. Export the translation file from the addons you want to override.
2. Translate it using POEeit or similar.
3. Drop the translation file inside a i18n_extra folder in the addon. E.g.: addon/i18n_extra/fr.pot

4. Update the addon.

With that system, a sub-module is able to override translations from parent modules.

Hope it helps

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

Let me know if the solution given by @cybrosis works for u.

Ảnh đại diện
Huỷ bỏ
Tác giả

Added the solution

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

My solution:

I have added the string from inherit model on my .po file

#: model:ir.model.fields,field_description:base.field_res_partner__name

Now I see correctly

Ả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 15
6228
2
thg 6 23
5658
2
thg 8 25
2692
1
thg 7 25
1066
1
thg 8 25
1151