diff --git a/addons/web/i18n/web.pot b/addons/web/i18n/web.pot index aabbc05dbbf..268cad3cb3b 100644 --- a/addons/web/i18n/web.pot +++ b/addons/web/i18n/web.pot @@ -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" 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 ac5eb343322..2f2919af272 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 { /** @@ -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), });