From f7fbe8adffb1ee585c8171f6c86d38145c11848d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Fri, 31 Aug 2018 11:10:23 +0200 Subject: [PATCH] [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)`. --- addons/web/static/src/xml/base.xml | 2 +- addons/web/static/tests/tools/debug_manager_tests.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 @@ Fields View Get - Edit View: + Edit View: Edit SearchView 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 = {