콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3180 화면

Hello everyone I exported file .po and add to i18n folder, I am working in owl and I can not translate as expected, here is my code

app.xml

   div t-name="HeaderContent"
           Human Resource
   div

i18n/language.po 

#. module: hr_management
#. openerp-web
#: code:addons/hr_management/static/src/xml/app.xml:0
#, python-format
msgid " Human Resource "
msgstr "The translate of word 'Human Resource' "

app.js

odoo.define("web.web_client", function(require) {    

    "use strict";

     const { Component, useState, mount } = owl;

     function app() {

         class HeaderContent extends Component {

         }

          mount(HeaderContent , { target: document.body });

    }

     async function start() {                       

         let templates;

         templates = await owl.utils.loadFile( " hr_management/static/src/xml/app.xml");

          const env = { qweb: new owl.QWeb({ templates }) }; 

          owl.Component.env = env;

          await owl.utils.whenReady();

          app();


     }

      start();

});



아바타
취소

Hello,
I have the same problem to translate my component. (In v15)
Do you found solutions ?

Thanks

관련 게시물 답글 화면 활동
1
9월 23
6987
0
11월 21
1468
0
7월 21
2106
1
5월 22
2770
0
5월 21
19