Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[i18n] Translate ML missed labels #29256

Merged
merged 107 commits into from
Jan 29, 2019
Merged
Show file tree
Hide file tree
Changes from 100 commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
c7ec189
Merge pull request #1 from elastic/master
Nox911 Sep 24, 2018
fa01b88
Merge pull request #2 from elastic/master
Nox911 Sep 27, 2018
70f6c7e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Sep 27, 2018
68587a0
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Sep 28, 2018
42aa7d3
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 2, 2018
efeaefe
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 2, 2018
8a054ed
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 8, 2018
b0d1660
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 16, 2018
62b6ad1
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 17, 2018
acbad4b
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 18, 2018
a850650
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 22, 2018
0a200ce
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 25, 2018
b2a8244
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 29, 2018
b4b979e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 30, 2018
d349a4f
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 31, 2018
ae285b9
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 2, 2018
3051641
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 5, 2018
6231971
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 8, 2018
f86a3d4
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 9, 2018
cf813c7
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 13, 2018
1aba03f
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 14, 2018
491009b
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 15, 2018
e243126
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 22, 2018
e74bd61
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 22, 2018
8bc5ffa
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 23, 2018
5787937
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 23, 2018
f17fa1e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 24, 2018
c63b0a6
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 26, 2018
ed62b5b
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 26, 2018
df4fab4
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 26, 2018
46d284a
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 27, 2018
d1fd49e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 29, 2018
ec1ad76
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 29, 2018
6ebd934
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 30, 2018
332d867
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 3, 2018
4a99411
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 3, 2018
4cdec42
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 4, 2018
5d44df7
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 4, 2018
c6e63aa
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 4, 2018
8182d1f
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 4, 2018
aefb90f
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 5, 2018
e4e7120
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 6, 2018
a9a6043
Merge branch 'master' of https://github.com/elastic/kibana
Dec 7, 2018
9d247e6
Merge branch 'master' of https://github.com/elastic/kibana
Dec 10, 2018
bd707af
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 11, 2018
71fb60d
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 12, 2018
4d95475
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 13, 2018
62e824d
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 13, 2018
4463796
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
876e358
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
231a859
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
2af5dc9
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
8a24575
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
aa0b988
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
1bd465e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
9c43f68
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
45ea012
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 17, 2018
b20b0be
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 19, 2018
279bfed
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 19, 2018
d4f3e72
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 19, 2018
917da91
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 21, 2018
6beb6fe
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 26, 2018
a1bcdb5
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 28, 2018
f4c8246
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 2, 2019
28c57ae
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 3, 2019
4b5e283
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 3, 2019
38b6a15
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 3, 2019
5f5ee45
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 3, 2019
f905f69
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 3, 2019
f1b48ce
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 4, 2019
e0d4ace
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 4, 2019
4eaa66e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 4, 2019
fbc9ba5
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 4, 2019
accf399
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 8, 2019
a4ebe6d
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 9, 2019
18c7b48
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 9, 2019
75b985c
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 9, 2019
c738a16
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 9, 2019
b81bc62
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 10, 2019
8bb5062
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 11, 2019
86c3cfa
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 11, 2019
fc3cbb5
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 14, 2019
1479425
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 14, 2019
29cfa20
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 15, 2019
88a1688
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 15, 2019
a5dc747
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 16, 2019
91ddca9
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 16, 2019
54d50eb
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 17, 2019
f3d438e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 17, 2019
172f5bf
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 21, 2019
d8af7d6
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 21, 2019
e5909c7
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 22, 2019
2488ea3
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 22, 2019
12c4fb2
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 23, 2019
5896929
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 23, 2019
b4a3362
Translate missed labels in ML
Nox911 Jan 24, 2019
27ae874
Add translation
Nox911 Jan 24, 2019
9444d30
Resolve review comments
Nox911 Jan 25, 2019
288cd1d
Update snapshot
Nox911 Jan 25, 2019
5dc6e51
Fix test
Nox911 Jan 25, 2019
24f775a
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 25, 2019
c776412
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 25, 2019
f64b707
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 28, 2019
9aed557
fix unit tests
pavel06081991 Jan 29, 2019
573e163
Remove snapshot
Nox911 Jan 29, 2019
47399a1
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 29, 2019
7d9bc58
Merge branch 'master' into feature/ml-translate-missing-labels
Nox911 Jan 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import PropTypes from 'prop-types';
import React, { Component, Fragment } from 'react';
import _ from 'lodash';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n/react';
import { FormattedMessage, injectI18n } from '@kbn/i18n/react';

import {
EuiDescriptionList,
Expand Down Expand Up @@ -216,7 +216,16 @@ function getDetailsItems(anomaly, examples, filter) {
return items;
}

export class AnomalyDetails extends Component {
export const AnomalyDetails = injectI18n(class AnomalyDetails extends Component {
static propTypes = {
anomaly: PropTypes.object.isRequired,
examples: PropTypes.array,
definition: PropTypes.object,
isAggregatedData: PropTypes.bool,
filter: PropTypes.func,
influencersLimit: PropTypes.number,
tabIndex: PropTypes.number.isRequired
};

constructor(props) {
super(props);
Expand Down Expand Up @@ -261,7 +270,7 @@ export class AnomalyDetails extends Component {
}

renderCategoryExamples() {
const { examples, definition } = this.props;
const { examples, definition, intl } = this.props;

return (
<EuiFlexGroup
Expand All @@ -274,14 +283,26 @@ export class AnomalyDetails extends Component {
<Fragment>
<EuiFlexItem key={`example-terms`}>
<EuiText size="xs">
<h4 className="mlAnomalyCategoryExamples__header">Terms</h4>&nbsp;
<h4 className="mlAnomalyCategoryExamples__header">
<FormattedMessage
id="xpack.ml.anomaliesTable.anomalyDetails.termsTitle"
defaultMessage="Terms"
/>
</h4>&nbsp;
<EuiIconTip
aria-label="Description"
aria-label={intl.formatMessage({
id: 'xpack.ml.anomaliesTable.anomalyDetails.termsDescriptionAriaLabel',
defaultMessage: 'Description'
})}
type="questionInCircle"
color="subdued"
size="s"
content={`A space separated list of the common tokens that are matched in values of the category
(may have been truncated to a max character limit of ${MAX_CHARS})`}
content={<FormattedMessage
id="xpack.ml.anomaliesTable.anomalyDetails.termsDescriptionTooltip"
defaultMessage="A space separated list of the common tokens that are matched in values of the category
(may have been truncated to a max character limit of {maxChars})"
values={{ maxChars: MAX_CHARS }}
/>}
/>
</EuiText>
<EuiText size="xs">
Expand All @@ -296,12 +317,19 @@ export class AnomalyDetails extends Component {
<EuiText size="xs">
<h4 className="mlAnomalyCategoryExamples__header">Regex</h4>&nbsp;
Nox911 marked this conversation as resolved.
Show resolved Hide resolved
<EuiIconTip
aria-label="Description"
aria-label={intl.formatMessage({
id: 'xpack.ml.anomaliesTable.anomalyDetails.regexDescriptionAriaLabel',
defaultMessage: 'Description'
})}
type="questionInCircle"
color="subdued"
size="s"
content={`The regular expression that is used to search for values that match the category
(may have been truncated to a max character limit of ${MAX_CHARS})`}
content={<FormattedMessage
id="xpack.ml.anomaliesTable.anomalyDetails.regexDescriptionTooltip"
defaultMessage="The regular expression that is used to search for values that match the category
(may have been truncated to a max character limit of {maxChars})"
values={{ maxChars: MAX_CHARS }}
/>}
/>
</EuiText>
<EuiText size="xs">
Expand All @@ -316,7 +344,12 @@ export class AnomalyDetails extends Component {
<EuiFlexItem key={`example${i}`}>
{(i === 0 && definition !== undefined) &&
<EuiText size="s">
<h4>Examples</h4>
<h4>
<FormattedMessage
id="xpack.ml.anomaliesTable.anomalyDetails.examplesTitle"
defaultMessage="Examples"
/>
</h4>
</EuiText>}
<span className="mlAnomalyCategoryExamples__item">{example}</span>
</EuiFlexItem>
Expand Down Expand Up @@ -527,7 +560,7 @@ export class AnomalyDetails extends Component {
);
}
}
}
});

AnomalyDetails.propTypes = {
anomaly: PropTypes.object.isRequired,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


import React from 'react';
import { shallow, mount } from 'enzyme';
import { shallowWithIntl, mountWithIntl } from 'test_utils/enzyme_helpers';
import { AnomalyDetails } from './anomaly_details';

const props = {
Expand Down Expand Up @@ -68,8 +68,8 @@ const props = {
describe('AnomalyDetails', () => {

test('Renders with anomaly details tab selected by default', () => {
const wrapper = shallow(
<AnomalyDetails {...props} />
const wrapper = shallowWithIntl(
<AnomalyDetails.WrappedComponent {...props} />
);

expect(wrapper.prop('tabs').length).toBe(2);
Expand All @@ -81,8 +81,8 @@ describe('AnomalyDetails', () => {
...props,
tabIndex: 1
};
const wrapper = shallow(
<AnomalyDetails {...categoryTabProps} />
const wrapper = shallowWithIntl(
<AnomalyDetails.WrappedComponent {...categoryTabProps} />
);
expect(wrapper.prop('initialSelectedTab').id).toBe('Category examples');
});
Expand All @@ -97,13 +97,11 @@ describe('AnomalyDetails', () => {
}
};

const wrapper = mount(
<AnomalyDetails {...categoryTabProps} />
const wrapper = mountWithIntl(
<AnomalyDetails.WrappedComponent {...categoryTabProps} />
);

expect(wrapper.containsMatchingElement(<h4>Regex</h4>)).toBe(true);
expect(wrapper.containsMatchingElement(<h4>Terms</h4>)).toBe(true);
expect(wrapper.contains(<h4>Examples</h4>)).toBe(true);
expect(wrapper).toMatchSnapshot();
Nox911 marked this conversation as resolved.
Show resolved Hide resolved
});

test('Renders only with examples when definition prop is undefined', () => {
Expand All @@ -113,13 +111,11 @@ describe('AnomalyDetails', () => {
definition: undefined
};

const wrapper = mount(
<AnomalyDetails {...categoryTabProps} />
const wrapper = mountWithIntl(
<AnomalyDetails.WrappedComponent {...categoryTabProps} />
);

expect(wrapper.containsMatchingElement(<h4>Regex</h4>)).toBe(false);
expect(wrapper.containsMatchingElement(<h4>Terms</h4>)).toBe(false);
expect(wrapper.contains(<h4>Examples</h4>)).toBe(false);
expect(wrapper).toMatchSnapshot();
Nox911 marked this conversation as resolved.
Show resolved Hide resolved
});

test('Renders only with terms when definition.regex is undefined', () => {
Expand All @@ -131,13 +127,11 @@ describe('AnomalyDetails', () => {
}
};

const wrapper = mount(
<AnomalyDetails {...categoryTabProps} />
const wrapper = mountWithIntl(
<AnomalyDetails.WrappedComponent {...categoryTabProps} />
);

expect(wrapper.containsMatchingElement(<h4>Regex</h4>)).toBe(false);
expect(wrapper.containsMatchingElement(<h4>Terms</h4>)).toBe(true);
expect(wrapper.contains(<h4>Examples</h4>)).toBe(true);
expect(wrapper).toMatchSnapshot();
Nox911 marked this conversation as resolved.
Show resolved Hide resolved
});

test('Renders only with regex when definition.terms is undefined', () => {
Expand All @@ -149,12 +143,10 @@ describe('AnomalyDetails', () => {
}
};

const wrapper = mount(
<AnomalyDetails {...categoryTabProps} />
const wrapper = mountWithIntl(
<AnomalyDetails.WrappedComponent {...categoryTabProps} />
);

expect(wrapper.containsMatchingElement(<h4>Regex</h4>)).toBe(true);
expect(wrapper.containsMatchingElement(<h4>Terms</h4>)).toBe(false);
expect(wrapper.contains(<h4>Examples</h4>)).toBe(true);
expect(wrapper).toMatchSnapshot();
Nox911 marked this conversation as resolved.
Show resolved Hide resolved
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ export const LinksMenu = injectI18n(class LinksMenu extends Component {
};

viewSeries = () => {
const { intl } = this.props;
const record = this.props.anomaly.source;
const bounds = this.props.timefilter.getActiveBounds();
const from = bounds.min.toISOString(); // e.g. 2016-02-08T16:00:00.000Z
Expand Down Expand Up @@ -175,10 +174,7 @@ export const LinksMenu = injectI18n(class LinksMenu extends Component {
jobIds: [record.job_id]
},
refreshInterval: {
display: intl.formatMessage({
id: 'xpack.ml.anomaliesTable.linksMenu.offLabel',
defaultMessage: 'Off'
}),
display: 'Off',
pause: false,
value: 0
},
Expand Down Expand Up @@ -297,10 +293,7 @@ export const LinksMenu = injectI18n(class LinksMenu extends Component {
// Use rison to build the URL .
const _g = rison.encode({
refreshInterval: {
display: intl.formatMessage({
id: 'xpack.ml.anomaliesTable.linksMenu.offLabel',
defaultMessage: 'Off'
}),
display: 'Off',
pause: false,
value: 0
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import { ml } from '../../../../services/ml_api_service';
import { chunk } from 'lodash';
import moment from 'moment';
import { i18n } from '@kbn/i18n';

const CHUNK_SIZE = 10000;
const IMPORT_RETRIES = 5;
Expand Down Expand Up @@ -51,7 +52,9 @@ export class Importer {
if (!id || !index) {
return {
success: false,
error: 'no ID or index supplied'
error: i18n.translate('xpack.ml.fileDatavisualizer.importView.noIdOrIndexSuppliedErrorMessage', {
defaultMessage: 'no ID or index supplied'
})
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<div class="job-timepicker-modal">
<ml-message-bar ></ml-message-bar>
<h1
tooltip="Start datafeed for {{jobId}}"
tooltip="{{ ::'xpack.ml.jobTimePickerModal.startDatafeedForJobTooltip' | i18n: {
defaultMessage: 'Start datafeed for {jobId}',
values: { jobId }
} }}"
class="euiTitle"
i18n-id="xpack.ml.jobTimePickerModal.startDatafeedForJobTitle"
i18n-default-message="Start datafeed for {jobId}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { mlJobService } from 'plugins/ml/services/job_service';
import { checkPermission } from 'plugins/ml/privilege/check_privilege';
import { ML_DATA_PREVIEW_COUNT } from 'plugins/ml/../common/util/job_utils';
import { MLJobEditor } from '../ml_job_editor';
import { FormattedMessage } from '@kbn/i18n/react';

export class DatafeedPreviewPane extends Component {

Expand All @@ -40,12 +41,18 @@ export class DatafeedPreviewPane extends Component {
if (canPreviewDatafeed === false) {
return (
<EuiCallOut
title="You do not have permission to view the datafeed preview"
title={<FormattedMessage
id="xpack.ml.jobsList.jobDetails.noPermissionToViewDatafeedPreviewTitle"
defaultMessage="You do not have permission to view the datafeed preview"
/>}
color="warning"
iconType="alert"
>
<p>
Please contact your administrator
<FormattedMessage
id="xpack.ml.jobsList.jobDetails.pleaseContactYourAdministratorLabel"
defaultMessage="Please contact your administrator"
/>
</p>
</EuiCallOut>);
} else if (loading === true) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,16 @@ class JobsListUI extends Component {
return (
<EuiBasicTable
loading={loading === true}
noItemsMessage={loading ? 'Loading jobs...' : 'No jobs found'}
noItemsMessage={loading ?
intl.formatMessage({
id: 'xpack.ml.jobsList.loadingJobsLabel',
defaultMessage: 'Loading jobs…'
}) :
intl.formatMessage({
id: 'xpack.ml.jobsList.noJobsFoundLabel',
defaultMessage: 'No jobs found'
})
}
itemId="id"
className={`jobs-list-table ${selectedJobsClass}`}
items={pageOfItems}
Expand Down
Loading