From 1b10d4e9240a1d4892143284e806ba8ab8281c9d Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 4 Jan 2021 08:55:32 +0000 Subject: [FIX] web: translate report button The button "Group By" and "Measures" were untranslated opw-2421769 closes odoo/odoo#63977 Signed-off-by: Martin Trigaux (mat) --- addons/web/static/src/js/views/graph/graph_controller.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src/js/views/graph/graph_controller.js') diff --git a/addons/web/static/src/js/views/graph/graph_controller.js b/addons/web/static/src/js/views/graph/graph_controller.js index 5751c5b5805..6cb2b89989a 100644 --- a/addons/web/static/src/js/views/graph/graph_controller.js +++ b/addons/web/static/src/js/views/graph/graph_controller.js @@ -10,6 +10,7 @@ const { ComponentWrapper } = require('web.OwlCompatibility'); const DropdownMenu = require('web.DropdownMenu'); const { DEFAULT_INTERVAL, INTERVAL_OPTIONS } = require('web.searchUtils'); const { qweb } = require('web.core'); +const { _t } = require('web.core'); class CarretDropdownMenu extends DropdownMenu { /** @@ -126,7 +127,7 @@ var GraphController = AbstractController.extend({ // Instantiate and append MeasureMenu this.measures.forEach(m => m.isActive = m.fieldName === state.measure); this.measureMenu = new ComponentWrapper(this, CarretDropdownMenu, { - title: "Measures", + title: _t("Measures"), items: this.measures, }); this.buttonDropdownPromises = [this.measureMenu.mount(fragment)]; @@ -134,7 +135,7 @@ var GraphController = AbstractController.extend({ if (this.isEmbedded) { // Instantiate and append GroupBy menu this.groupByMenu = new ComponentWrapper(this, CarretDropdownMenu, { - title: "Group By", + title: _t("Group By"), icon: 'fa fa-bars', items: this._getGroupBys(state.groupBy), }); -- cgit v1.2.3