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

Hello,

I am trying to overwrite strings in a personal project. I know I could just change the strings in the Odoo source code but I don't want to do that. I want to achieve this through overwrites in custom modules.

So for example, there are strings in the base module I want to change. How would I go about achieving this? I have tried this folder structure...

base

    -> i18n

        -> is.po


I am using Cloudpepper and adding this custom repo as an addon but strings are not changing. Any clue how to make it work?


I have tried creating a new module with the same folder structure and installed that module with the overwritten string, which worked... but... I would rather overwrite each module instead of having to install a custom module with all the strings in a single .po file.

I know I could also import the .po but I don't want to do that either. I want this to be handled through a custom module to save work in the future.

Ảnh đại diện
Huỷ bỏ

Check this references to add translations using module https://youtu.be/ZRpmM8lDn-w?si=2YlJPFrU_6lN9AIk

Câu trả lời hay nhất

I didn't understand the question well, but if what you want is to write the strings of your module, I do it in the .po of my module. 


If you want it, it is about writing strings of native modules, because you write (inherit) the view and then define how you want that new string that you inserted in the view to look like.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 21
2364
1
thg 4 25
2602
0
thg 2 25
758
0
thg 8 16
3447
1
thg 12 22
4609