summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2012-02-07 15:31:16 +0100
committerOlivier Dony <odo@openerp.com>2012-02-07 15:31:16 +0100
commita93634d80ca6a5cc48441443c291d3ebb7625ab6 (patch)
treeb13a043496940eeafbc44cdab46157985cab6f95 /addons/web/static/src/xml
parentce65bc3ac37934a27045e8af3d43fc0accf35f3c (diff)
[FIX] base.xml: exclude classnames set with @t-set from translatable things
This could cause problems if someone was to translate these class names to something different, possibly breaking all menu rendering. The corresponding web.pot template was already re-exported, to remove the spurious terms (and incidentally update all source line references). bzr revid: odo@openerp.com-20120207143116-tnyerd15j9hlpjff
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 279c3affa5c..4194831bb78 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -390,7 +390,7 @@
</div>
<div t-foreach="widget.data.data.children" t-as="menu" style="display: none" class="oe_secondary_menu" t-att-data-menu-parent="menu.id">
<t t-foreach="menu.children" t-as="menu">
- <t t-set="classname">oe_secondary_menu_item</t>
+ <t t-set="classname" t-translation="off">oe_secondary_menu_item</t>
<t t-set="level" t-value="0"/>
<t t-call="Menu.secondary.children"/>
</t>
@@ -405,7 +405,7 @@
</a>
<div t-attf-class="oe_secondary_submenu" t-if="menu.children.length" t-att-style="menu_first and level == 1 ? undefined : 'display: none'">
<t t-foreach="menu.children" t-as="menu">
- <t t-set="classname">oe_secondary_submenu_item</t>
+ <t t-set="classname" t-translation="off">oe_secondary_submenu_item</t>
<t t-call="Menu.secondary.children"/>
</t>
</div>