summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/graph/graph_controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js/views/graph/graph_controller.js')
-rw-r--r--addons/web/static/src/js/views/graph/graph_controller.js5
1 files changed, 3 insertions, 2 deletions
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),
});