Skip to Content
Menu
This question has been flagged
2 Replies
3380 Views

I am adding dynamic sub menues in website but strings do not get translated. Event after adding data-oe-translate="1"

<template id="link_all_products" name="Alle Produkte">
  <li class="secondary-item navbar-primary-item navbar-primary-item-link" name="Submenu">
  <a t-att-href="(website.menu_id.child_id[0] == submenu) and '/' or submenu.url"
        t-ignore="true" t-att-target="'_blank' if submenu.new_window else None">
  <span t-field="submenu.name" data-oe-translate="1"/>
  </a>
  </li>
</template>


If I replace

<span t-field="submenu.name" data-oe-translate="1"/>


with a static string it gets translated. Seems a bug in qweb, any help on this issue.


Thanks

Avatar
Discard
Author Best Answer

create a new issue on github, I hope they can see it:

https://github.com/odoo/odoo/issues/10749

Avatar
Discard
Best Answer

Yesterday I had the same problem and I delete all code and I did it another time with website builder. You do it all over again. They are bugs of Odoo. 

I save when I have a little change and I check that the translation works if not works I delete the code and I do it other time.


;)

Avatar
Discard