Skip to Content
Menu
This question has been flagged
2193 Views

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();

});



Avatar
Discard

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

Thanks

Related Posts Replies Views Activity
1
Sep 23
5978
0
Nov 21
887
0
Jul 21
1470
1
May 22
2003
0
May 21
19