19 lines
976 B
XML
19 lines
976 B
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<templates xml:space="preserve">
|
|
|
|
<!-- Patch SectionsMenu: add translate button inside Dropdown-based section buttons (items with children) -->
|
|
<t t-name="translation_helper.NavBar.SectionsMenu" t-inherit="web.NavBar.SectionsMenu" t-inherit-mode="extension">
|
|
<xpath expr="//button[@t-att-data-menu-xmlid]/span" position="after">
|
|
<MenuTranslationButton t-if="__translate__" menuXmlId="section.xmlid" />
|
|
</xpath>
|
|
</t>
|
|
|
|
<!-- Patch MenuSlot: add translate button after group headers (items with children inside dropdown) -->
|
|
<t t-name="translation_helper.NavBar.SectionsMenu.Dropdown.MenuSlot" t-inherit="web.NavBar.SectionsMenu.Dropdown.MenuSlot" t-inherit-mode="extension">
|
|
<xpath expr="//div[hasclass('dropdown-menu_group')]" position="after">
|
|
<MenuTranslationButton t-if="__translate__ and item.xmlid" menuXmlId="item.xmlid" />
|
|
</xpath>
|
|
</t>
|
|
|
|
</templates>
|