diff options
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 5 |
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 })" |
