Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

[9.0] Website dynamic menu translation

By
Farid Shahy
on 2/2/16, 5:54 AM 404 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

0
Farid Shahy
On 2/3/16, 4:10 AM

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

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

0
Laura
On 2/2/16, 7:37 AM

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.


;)

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/2/16, 5:54 AM
Seen: 404 times
Last updated: 2/3/16, 4:10 AM