From f010694f5c29598cde6f4bd84c8e6c8b10e3008b Mon Sep 17 00:00:00 2001 From: Maryia Lapata Date: Fri, 14 Dec 2018 11:06:31 +0300 Subject: [PATCH] Translate missing labels in Discover (#26953) (#27115) --- .../components/field_chooser/discover_field.js | 4 +++- .../kibana/public/discover/index.html | 18 +++++++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/legacy/core_plugins/kibana/public/discover/components/field_chooser/discover_field.js b/src/legacy/core_plugins/kibana/public/discover/components/field_chooser/discover_field.js index 8ff6e3a5751f..66b8eb8ab6cd 100644 --- a/src/legacy/core_plugins/kibana/public/discover/components/field_chooser/discover_field.js +++ b/src/legacy/core_plugins/kibana/public/discover/components/field_chooser/discover_field.js @@ -60,7 +60,9 @@ app.directive('discoverField', function ($compile, i18n) { let warnings = []; if (field.scripted) { - warnings.push('Scripted fields can take a long time to execute.'); + warnings.push(i18n('kbn.discover.fieldChooser.discoverField.scriptedFieldsTakeLongExecuteDescription', { + defaultMessage: 'Scripted fields can take a long time to execute.', + })); } if (warnings.length > 1) { diff --git a/src/legacy/core_plugins/kibana/public/discover/index.html b/src/legacy/core_plugins/kibana/public/discover/index.html index b388844d9321..8f770a6fc2db 100644 --- a/src/legacy/core_plugins/kibana/public/discover/index.html +++ b/src/legacy/core_plugins/kibana/public/discover/index.html @@ -116,10 +116,18 @@ -
+
- {{timeRange.from | moment}} - {{timeRange.to | moment}} + + {{timeRange.from | moment}} - {{timeRange.to | moment}} + — @@ -157,7 +165,11 @@
-
+