تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2209 أدوات العرض

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
سبتمبر 23
5998
0
نوفمبر 21
894
0
يوليو 21
1474
1
مايو 22
2012
0
مايو 21
19