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

There are some times when I need strings in a report, that do not exist in any other part of the module: model, fields, XML files, module descripcion, .....Since such strings do not exist in the module -but I will only declare and _-wrap them in a mako report- EXPORTING the i18n file from the module to be edited will not work: I will have to add the needed strings by hand in my file:

    msgid "Worked Hours"
    msgstr "Horas Trabajadas"

However, these strings are never translated in my report when I do: _('Worked Hours'), while other strings (which exist in fields or modules) are successfully translated (like _('Start Date')).

How can I mark them to be recognized? I tried this:

    #. module: hr_attendance_analysis
    #: view:hr.attendance:0
    msgid "Worked Hours"
    msgstr "Horas Trabajadas"

But it did not work. How can I make it work?

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

I have similar problem, does anyone have an idea?

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 5 22
33833
0
thg 3 19
3994
0
thg 1 19
5030
4
thg 2 24
12239
0
thg 1 18
3890