From 9a3414c35a0e77dbe92dbf52c5212dcc17aac0a4 Mon Sep 17 00:00:00 2001 From: tibmt Date: Thu, 18 Oct 2018 14:17:06 +0300 Subject: [PATCH] Translate heatmap and heatmap_options (#23812) 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 a427f32cdff7d..7773850141bdf 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 f0c42c1a92f2c..9cce236e748fd 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 -
+
- +
- +
- +