Translate missing labels in Discover (#26953) (#27115)

This commit is contained in:
Maryia Lapata 2018-12-14 11:06:31 +03:00 committed by Nox911
parent 960fadea55
commit f010694f5c
2 changed files with 18 additions and 4 deletions

View file

@ -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) {

View file

@ -116,10 +116,18 @@
</span>
</button>
<section aria-label="Histogram of found documents" class="dscTimechart" ng-if="opts.timefield">
<section
aria-label="{{::'kbn.discover.histogramOfFoundDocumentsAriaLabel' | i18n: {defaultMessage: 'Histogram of found documents'} }}"
class="dscTimechart"
ng-if="opts.timefield"
>
<header class="dscTimechart__header">
<div class="small">
<span tooltip="To change the time, click the clock icon in the navigation bar">{{timeRange.from | moment}} - {{timeRange.to | moment}}</span>
<span
tooltip="{{::'kbn.discover.howToChangeTheTimeTooltip' | i18n: {defaultMessage: 'To change the time, click the clock icon in the navigation bar'} }}"
>
{{timeRange.from | moment}} - {{timeRange.to | moment}}
</span>
&mdash;
@ -157,7 +165,11 @@
</div>
</section>
<section class="dscTable" fixed-scroll aria-label="Documents">
<section
class="dscTable"
fixed-scroll
aria-label="{{::'kbn.discover.documentsAriaLabel' | i18n: {defaultMessage: 'Documents'} }}"
>
<doc-table
hits="rows"
index-pattern="indexPattern"