From cc79398ecbb2a0f03cc667211bbd0e02833899ef Mon Sep 17 00:00:00 2001 From: tibmt Date: Thu, 18 Oct 2018 16:34:59 +0300 Subject: [PATCH] Translate heatmap and heatmap_options (#23812) (#24195) Translation of Heatmap visualization component --- .../public/controls/heatmap_options.html | 139 ++++++++++++------ .../public/controls/heatmap_options.js | 6 +- .../public/editors/heatmap.html | 43 ++++-- .../kbn_vislib_vis_types/public/heatmap.js | 14 +- 4 files changed, 133 insertions(+), 69 deletions(-) diff --git a/src/core_plugins/kbn_vislib_vis_types/public/controls/heatmap_options.html b/src/core_plugins/kbn_vislib_vis_types/public/controls/heatmap_options.html index a427f32cdff7d7..7773850141bdf7 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/controls/heatmap_options.html +++ b/src/core_plugins/kbn_vislib_vis_types/public/controls/heatmap_options.html @@ -1,8 +1,11 @@
- +
- +
- +
- +
- - Custom Ranges - +
- + - + @@ -163,21 +191,29 @@
-

- - Required: You must specify at least one range. -

+

+ i18n-id="kbnVislibVisTypes.controls.heatmapOptions.addRangeButtonLabel" + i18n-default-message="Add Range" + >
-
Note: colors can be changed in the legend
+
@@ -198,9 +234,11 @@ }" class="kuiIcon fa-caret-right kuiSideBarCollapsibleTitle__caret" > - - Show Labels - +
- +
- +
- +
{ $scope.customColors = true; }); + + $scope.requiredText = i18n('kbnVislibVisTypes.controls.heatmapOptions.requiredText', { + defaultMessage: 'Required:' + }); } }; }); diff --git a/src/core_plugins/kbn_vislib_vis_types/public/editors/heatmap.html b/src/core_plugins/kbn_vislib_vis_types/public/editors/heatmap.html index f0c42c1a92f2c1..9cce236e748fdf 100644 --- a/src/core_plugins/kbn_vislib_vis_types/public/editors/heatmap.html +++ b/src/core_plugins/kbn_vislib_vis_types/public/editors/heatmap.html @@ -1,32 +1,43 @@
-
- Basic Settings -
+
- +
- +
- +