From 7177b9d771446bf8a5e04163fb5fb033d1db3155 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Tue, 28 Apr 2020 14:29:42 +0200 Subject: [PATCH] UX: Translating poll chart types wasn't possible --- .../javascripts/controllers/poll-ui-builder.js.es6 | 10 ++++++++-- plugins/poll/config/locales/client.en.yml | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/poll/assets/javascripts/controllers/poll-ui-builder.js.es6 b/plugins/poll/assets/javascripts/controllers/poll-ui-builder.js.es6 index e5ca3d05d63..a653b8113bf 100644 --- a/plugins/poll/assets/javascripts/controllers/poll-ui-builder.js.es6 +++ b/plugins/poll/assets/javascripts/controllers/poll-ui-builder.js.es6 @@ -15,8 +15,14 @@ export default Controller.extend({ closedPollResult: "on_close", staffPollResult: "staff_only", pollChartTypes: [ - { name: BAR_CHART_TYPE.capitalize(), value: BAR_CHART_TYPE }, - { name: PIE_CHART_TYPE.capitalize(), value: PIE_CHART_TYPE } + { + name: I18n.t("poll.ui_builder.poll_chart_type.bar"), + value: BAR_CHART_TYPE + }, + { + name: I18n.t("poll.ui_builder.poll_chart_type.pie"), + value: PIE_CHART_TYPE + } ], pollType: null, diff --git a/plugins/poll/config/locales/client.en.yml b/plugins/poll/config/locales/client.en.yml index ae4a258e883..035630f4219 100644 --- a/plugins/poll/config/locales/client.en.yml +++ b/plugins/poll/config/locales/client.en.yml @@ -118,6 +118,8 @@ en: label: Allowed groups poll_chart_type: label: Chart type + bar: Bar + pie: Pie poll_config: max: Max min: Min