[FIX] web: translate report button

The button "Group By" and "Measures" were untranslated

opw-2421769

closes odoo/odoo#64015

X-original-commit: b4249c9125bd9b6077425636f67dec0303554da8
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
Martin Trigaux
2021-01-04 13:36:06 +00:00
parent 85750746f6
commit bd85f0a5ea
2 changed files with 7 additions and 4 deletions
+4 -2
View File
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server saas~14.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-12-11 07:29+0000\n"
"PO-Revision-Date: 2020-12-11 07:29+0000\n"
"POT-Creation-Date: 2021-01-04 08:58+0000\n"
"PO-Revision-Date: 2021-01-04 08:58+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -1972,6 +1972,7 @@ msgstr ""
#. module: web
#. openerp-web
#: code:addons/web/static/src/js/control_panel/groupby_menu.js:0
#: code:addons/web/static/src/js/views/graph/graph_controller.js:0
#, python-format
msgid "Group By"
msgstr ""
@@ -2424,6 +2425,7 @@ msgstr ""
#. module: web
#. openerp-web
#: code:addons/web/static/src/js/views/graph/graph_controller.js:0
#: code:addons/web/static/src/xml/base.xml:0
#, python-format
msgid "Measures"
@@ -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 {
/**
@@ -119,14 +120,14 @@ 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)];
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),
});