diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-08-31 11:10:23 +0200 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-08-31 12:21:51 +0200 |
| commit | f7fbe8adffb1ee585c8171f6c86d38145c11848d (patch) | |
| tree | 54320058f6b83f859c45d8cb53876e30875f146d /addons/web/static | |
| parent | cb91165b9f6ad6dc70233deafaaf9ffd1c39752d (diff) | |
[FIX] web: make 'Edit View: X' translatable
Revision on https://github.com/odoo/odoo/commit/4f6f562c973ce2efd5631ea0e249e75d94cac104
Contrary to what the commit above said, the string was not translatable.
This commit fixes the issue by using the property `display_name`, which
is the translatable equivalent string of `_.str.capitalize(type)`.
Diffstat (limited to 'addons/web/static')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 2 | ||||
| -rw-r--r-- | addons/web/static/tests/tools/debug_manager_tests.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index e1ba3c29509..e4a77c274b3 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -272,7 +272,7 @@ <a role="menuitem" href="#" data-action="fvg" class="dropdown-item">Fields View Get</a> <t t-if="can_edit"> <a role="menuitem" href="#" data-action="edit" data-model="ir.ui.view" t-att-data-id="view.fieldsView.view_id" class="dropdown-item"> - Edit View: <t t-esc="_.str.capitalize(view.type)"/> + Edit View: <t t-esc="view.display_name"/> </a> <a t-if="searchview and searchview.$el.is(':visible')" role="menuitem" href="#" data-action="edit" data-model="ir.ui.view" t-att-data-id="action.searchFieldsView.view_id" class="dropdown-item">Edit SearchView</a> </t> diff --git a/addons/web/static/tests/tools/debug_manager_tests.js b/addons/web/static/tests/tools/debug_manager_tests.js index c63fd02e48d..27498400b2a 100644 --- a/addons/web/static/tests/tools/debug_manager_tests.js +++ b/addons/web/static/tests/tools/debug_manager_tests.js @@ -52,6 +52,7 @@ QUnit.module('DebugManager', {}, function () { view_id: 1, }, type: "list", + display_name: "List", }], }; var view = { |
