summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2021-02-25 12:07:58 +0100
committerMartin Trigaux <mat@odoo.com>2021-02-25 15:44:43 +0100
commitd54b707efd63cb3dd4b5080d60672932bfb5fe94 (patch)
tree740dcbd0943f5d13264d3eb8c33745dd72679c5a /addons/web/static/src/xml/base.xml
parent4c1c1e480c2f577fc1919aec53c51cef48b6bf4d (diff)
[FIX] web: translate "View ..." title
And remove code content
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index c52c7e0ac60..949c6926ebf 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -631,12 +631,13 @@
</t>
<t t-name="web.ViewSwitcherButton" owl="1">
+ <t t-set="buttonLabel">View %s</t>
<button type="button"
t-att-accesskey="view.accessKey"
t-attf-class="btn btn-secondary fa fa-lg o_switch_view o_{{ view.type }} {{ view.icon }}"
t-att-class="{ active: env.view.type === view.type }"
- t-attf-aria-label="View {{ view.type }}"
- t-attf-title="View {{ view.type }}"
+ t-att-aria-label="sprintf(buttonLabel.toString(), view.type)"
+ t-att-title="sprintf(buttonLabel.toString(), view.type)"
data-toggle="tooltip"
tabindex="-1"
t-on-click="trigger('switch-view', { view_type: view.type })"