mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[i18n] Fix typos in translations ids and messages (#24480)
* Fix typos in translations ids and messages * Fix typos
This commit is contained in:
parent
89d88553cf
commit
b7242ac8ff
17 changed files with 38 additions and 38 deletions
|
@ -33,7 +33,7 @@ exports[`renders OptionsTab 1`] = `
|
|||
label={
|
||||
<FormattedMessage
|
||||
defaultMessage="Use time filter"
|
||||
id="inputControl.editor.optionsTab.useTimeFielterLabel"
|
||||
id="inputControl.editor.optionsTab.useTimeFilterLabel"
|
||||
values={Object {}}
|
||||
/>
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ exports[`renders OptionsTab 1`] = `
|
|||
label={
|
||||
<FormattedMessage
|
||||
defaultMessage="Pin filters to global state"
|
||||
id="inputControl.editor.optionsTab.pinFieltersLabel"
|
||||
id="inputControl.editor.optionsTab.pinFiltersLabel"
|
||||
values={Object {}}
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ export class OptionsTab extends Component {
|
|||
>
|
||||
<EuiSwitch
|
||||
label={<FormattedMessage
|
||||
id="inputControl.editor.optionsTab.useTimeFielterLabel"
|
||||
id="inputControl.editor.optionsTab.useTimeFilterLabel"
|
||||
defaultMessage="Use time filter"
|
||||
/>}
|
||||
checked={this.props.editorState.params.useTimeFilter}
|
||||
|
@ -85,7 +85,7 @@ export class OptionsTab extends Component {
|
|||
>
|
||||
<EuiSwitch
|
||||
label={<FormattedMessage
|
||||
id="inputControl.editor.optionsTab.pinFieltersLabel"
|
||||
id="inputControl.editor.optionsTab.pinFiltersLabel"
|
||||
defaultMessage="Pin filters to global state"
|
||||
/>}
|
||||
checked={this.props.editorState.params.pinFilters}
|
||||
|
|
|
@ -23,7 +23,7 @@ import _ from 'lodash';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
export function noValuesDisableMsg(fieldName, indexPatternName) {
|
||||
return i18n.translate('inputControl.control.noValuesDisableTootip', {
|
||||
return i18n.translate('inputControl.control.noValuesDisableTooltip', {
|
||||
defaultMessage: 'Filtering occurs on the "{fieldName}" field, which doesn\'t exist on any documents in the "{indexPatternName}" \
|
||||
index pattern. Choose a different field or index documents that contain values for this field.',
|
||||
values: { fieldName: fieldName, indexPatternName: indexPatternName }
|
||||
|
@ -31,7 +31,7 @@ index pattern. Choose a different field or index documents that contain values f
|
|||
}
|
||||
|
||||
export function noIndexPatternMsg(indexPatternId) {
|
||||
return i18n.translate('inputControl.control.noIndexPatternTootip', {
|
||||
return i18n.translate('inputControl.control.noIndexPatternTooltip', {
|
||||
defaultMessage: 'Could not locate index-pattern id: {indexPatternId}.',
|
||||
values: { indexPatternId }
|
||||
});
|
||||
|
@ -51,7 +51,7 @@ export class Control {
|
|||
// restore state from kibana filter context
|
||||
this.reset();
|
||||
// disable until initialized
|
||||
this.disable(i18n.translate('inputControl.control.notInitializedTootip', {
|
||||
this.disable(i18n.translate('inputControl.control.notInitializedTooltip', {
|
||||
defaultMessage: 'Control has not been initialized'
|
||||
}));
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ class ListControl extends Control {
|
|||
let ancestorFilters;
|
||||
if (this.hasAncestors()) {
|
||||
if (this.hasUnsetAncestor()) {
|
||||
this.disable(i18n.translate('inputControl.listControl.disableTootip', {
|
||||
this.disable(i18n.translate('inputControl.listControl.disableTooltip', {
|
||||
defaultMessage: 'Disabled until \'{label}\' is set.',
|
||||
values: { label: this.ancestors[0].label }
|
||||
}));
|
||||
|
@ -118,7 +118,7 @@ class ListControl extends Control {
|
|||
try {
|
||||
resp = await searchSource.fetch();
|
||||
} catch(error) {
|
||||
this.disable(i18n.translate('inputControl.listControl.unableToFetchTootip', {
|
||||
this.disable(i18n.translate('inputControl.listControl.unableToFetchTooltip', {
|
||||
defaultMessage: 'Unable to fetch terms, error: {errorMessage}',
|
||||
values: { errorMessage: error.message }
|
||||
}));
|
||||
|
|
|
@ -65,7 +65,7 @@ class RangeControl extends Control {
|
|||
try {
|
||||
resp = await searchSource.fetch();
|
||||
} catch(error) {
|
||||
this.disable(i18n.translate('inputControl.rangeControl.unableToFetchTootip', {
|
||||
this.disable(i18n.translate('inputControl.rangeControl.unableToFetchTooltip', {
|
||||
defaultMessage: 'Unable to fetch range min and max, error: {errorMessage}',
|
||||
values: { errorMessage: error.message }
|
||||
}));
|
||||
|
|
|
@ -67,7 +67,7 @@ export function Instruction({ commands, paramValues, textPost, textPre, replaceT
|
|||
size="s"
|
||||
onClick={copy}
|
||||
>
|
||||
<FormattedMessage id="kbn.home.tutorial.instraction.copyButtonLabel" defaultMessage="Copy snippet"/>
|
||||
<FormattedMessage id="kbn.home.tutorial.instruction.copyButtonLabel" defaultMessage="Copy snippet"/>
|
||||
</EuiButton>
|
||||
)}
|
||||
</EuiCopy>
|
||||
|
|
|
@ -97,7 +97,7 @@ class InstructionSetUi extends React.Component {
|
|||
case StatusCheckStates.HAS_DATA:
|
||||
message = this.props.statusCheckConfig.success
|
||||
? this.props.statusCheckConfig.success
|
||||
: this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instractionSet.successLabel',
|
||||
: this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instructionSet.successLabel',
|
||||
defaultMessage: 'Success' });
|
||||
color = 'success';
|
||||
break;
|
||||
|
@ -105,7 +105,7 @@ class InstructionSetUi extends React.Component {
|
|||
case StatusCheckStates.NO_DATA:
|
||||
message = this.props.statusCheckConfig.error
|
||||
? this.props.statusCheckConfig.error
|
||||
: this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instractionSet.noDataLabel',
|
||||
: this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instructionSet.noDataLabel',
|
||||
defaultMessage: 'No data found' });
|
||||
color = 'warning';
|
||||
break;
|
||||
|
@ -154,7 +154,7 @@ class InstructionSetUi extends React.Component {
|
|||
isLoading={statusCheckState === StatusCheckStates.FETCHING}
|
||||
>
|
||||
{statusCheckConfig.btnLabel || <FormattedMessage
|
||||
id="kbn.home.tutorial.instractionSet.checkStatusButtonLabel"
|
||||
id="kbn.home.tutorial.instructionSet.checkStatusButtonLabel"
|
||||
defaultMessage="Check status"
|
||||
/>}
|
||||
</EuiButton>
|
||||
|
@ -168,7 +168,7 @@ class InstructionSetUi extends React.Component {
|
|||
);
|
||||
|
||||
return {
|
||||
title: statusCheckConfig.title || this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instractionSet.statusCheckTitle',
|
||||
title: statusCheckConfig.title || this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instructionSet.statusCheckTitle',
|
||||
defaultMessage: 'Status Check'
|
||||
}),
|
||||
status: this.getStepStatus(statusCheckState),
|
||||
|
@ -221,7 +221,7 @@ class InstructionSetUi extends React.Component {
|
|||
'fa-caret-right': !this.state.isParamFormVisible,
|
||||
'fa-caret-down': this.state.isParamFormVisible
|
||||
});
|
||||
const ariaLabel = this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instractionSet.toggleAriaLabel',
|
||||
const ariaLabel = this.props.intl.formatMessage({ id: 'kbn.home.tutorial.instructionSet.toggleAriaLabel',
|
||||
defaultMessage: 'toggle command parameters visibility'
|
||||
});
|
||||
paramsVisibilityToggle = (
|
||||
|
@ -234,7 +234,7 @@ class InstructionSetUi extends React.Component {
|
|||
<span className={visibilityToggleClasses} />
|
||||
<span className="kuiSideBarCollapsibleTitle__text">
|
||||
<FormattedMessage
|
||||
id="kbn.home.tutorial.instractionSet.customizeLabel"
|
||||
id="kbn.home.tutorial.instructionSet.customizeLabel"
|
||||
defaultMessage="Customize your code snippets"
|
||||
/>
|
||||
</span>
|
||||
|
|
|
@ -77,7 +77,7 @@ exports[`Field for array setting should render as read only with help text if ov
|
|||
size="xs"
|
||||
>
|
||||
<FormattedMessage
|
||||
defaultMessage="This setting is overriden by the Kibana server and can not be changed."
|
||||
defaultMessage="This setting is overridden by the Kibana server and can not be changed."
|
||||
id="kbn.management.settings.field.helpText"
|
||||
values={Object {}}
|
||||
/>
|
||||
|
@ -456,7 +456,7 @@ exports[`Field for boolean setting should render as read only with help text if
|
|||
size="xs"
|
||||
>
|
||||
<FormattedMessage
|
||||
defaultMessage="This setting is overriden by the Kibana server and can not be changed."
|
||||
defaultMessage="This setting is overridden by the Kibana server and can not be changed."
|
||||
id="kbn.management.settings.field.helpText"
|
||||
values={Object {}}
|
||||
/>
|
||||
|
@ -827,7 +827,7 @@ exports[`Field for image setting should render as read only with help text if ov
|
|||
size="xs"
|
||||
>
|
||||
<FormattedMessage
|
||||
defaultMessage="This setting is overriden by the Kibana server and can not be changed."
|
||||
defaultMessage="This setting is overridden by the Kibana server and can not be changed."
|
||||
id="kbn.management.settings.field.helpText"
|
||||
values={Object {}}
|
||||
/>
|
||||
|
@ -1215,7 +1215,7 @@ exports[`Field for json setting should render as read only with help text if ove
|
|||
size="xs"
|
||||
>
|
||||
<FormattedMessage
|
||||
defaultMessage="This setting is overriden by the Kibana server and can not be changed."
|
||||
defaultMessage="This setting is overridden by the Kibana server and can not be changed."
|
||||
id="kbn.management.settings.field.helpText"
|
||||
values={Object {}}
|
||||
/>
|
||||
|
@ -1708,7 +1708,7 @@ exports[`Field for markdown setting should render as read only with help text if
|
|||
size="xs"
|
||||
>
|
||||
<FormattedMessage
|
||||
defaultMessage="This setting is overriden by the Kibana server and can not be changed."
|
||||
defaultMessage="This setting is overridden by the Kibana server and can not be changed."
|
||||
id="kbn.management.settings.field.helpText"
|
||||
values={Object {}}
|
||||
/>
|
||||
|
@ -2151,7 +2151,7 @@ exports[`Field for number setting should render as read only with help text if o
|
|||
size="xs"
|
||||
>
|
||||
<FormattedMessage
|
||||
defaultMessage="This setting is overriden by the Kibana server and can not be changed."
|
||||
defaultMessage="This setting is overridden by the Kibana server and can not be changed."
|
||||
id="kbn.management.settings.field.helpText"
|
||||
values={Object {}}
|
||||
/>
|
||||
|
@ -2530,7 +2530,7 @@ exports[`Field for select setting should render as read only with help text if o
|
|||
size="xs"
|
||||
>
|
||||
<FormattedMessage
|
||||
defaultMessage="This setting is overriden by the Kibana server and can not be changed."
|
||||
defaultMessage="This setting is overridden by the Kibana server and can not be changed."
|
||||
id="kbn.management.settings.field.helpText"
|
||||
values={Object {}}
|
||||
/>
|
||||
|
@ -2977,7 +2977,7 @@ exports[`Field for string setting should render as read only with help text if o
|
|||
size="xs"
|
||||
>
|
||||
<FormattedMessage
|
||||
defaultMessage="This setting is overriden by the Kibana server and can not be changed."
|
||||
defaultMessage="This setting is overridden by the Kibana server and can not be changed."
|
||||
id="kbn.management.settings.field.helpText"
|
||||
values={Object {}}
|
||||
/>
|
||||
|
|
|
@ -463,7 +463,7 @@ class FieldUI extends PureComponent {
|
|||
<EuiText size="xs">
|
||||
<FormattedMessage
|
||||
id="kbn.management.settings.field.helpText"
|
||||
defaultMessage="This setting is overriden by the Kibana server and can not be changed."
|
||||
defaultMessage="This setting is overridden by the Kibana server and can not be changed."
|
||||
/>
|
||||
</EuiText>
|
||||
);
|
||||
|
|
|
@ -396,8 +396,8 @@ export ELASTIC_APM_SERVER_URL=
|
|||
export ELASTIC_APM_SECRET_TOKEN=
|
||||
`.split('\n'),
|
||||
textPost: i18n.translate('kbn.server.tutorials.apm.goClient.configure.textPost', {
|
||||
defaultMessage: 'See the [documentation]({documenationLink}) for advanced configuration.',
|
||||
values: { documenationLink: '{config.docs.base_url}guide/en/apm/agent/go/current/configuration.html' },
|
||||
defaultMessage: 'See the [documentation]({documentationLink}) for advanced configuration.',
|
||||
values: { documentationLink: '{config.docs.base_url}guide/en/apm/agent/go/current/configuration.html' },
|
||||
}),
|
||||
},
|
||||
{
|
||||
|
@ -457,9 +457,9 @@ Do **not** add the agent as a dependency to your application.',
|
|||
-Delastic.apm.application_packages=org.example \\
|
||||
-jar my-application.jar`.split('\n'),
|
||||
textPost: i18n.translate('kbn.server.tutorials.apm.javaClient.startApplication.textPost', {
|
||||
defaultMessage: 'See the [documentation]({documenationLink}) for configuration options and advanced \
|
||||
defaultMessage: 'See the [documentation]({documentationLink}) for configuration options and advanced \
|
||||
usage.\n\n**Warning: The Java agent is currently in Beta and not meant for production use.**',
|
||||
values: { documenationLink: '{config.docs.base_url}guide/en/apm/agent/java/current/index.html' },
|
||||
values: { documentationLink: '{config.docs.base_url}guide/en/apm/agent/java/current/index.html' },
|
||||
}),
|
||||
},
|
||||
];
|
||||
|
|
|
@ -31,7 +31,7 @@ export function logstashMetricsSpecProvider(server, context) {
|
|||
isBeta: true,
|
||||
category: TUTORIAL_CATEGORY.METRICS,
|
||||
shortDescription: i18n.translate('kbn.server.tutorials.logstashMetrics.shortDescription', {
|
||||
defaultMessage: 'Fetch interal metrics from a Logstash server.',
|
||||
defaultMessage: 'Fetch internal metrics from a Logstash server.',
|
||||
}),
|
||||
longDescription: i18n.translate('kbn.server.tutorials.logstashMetrics.longDescription', {
|
||||
defaultMessage: 'The `{moduleName}` Metricbeat module fetches internal metrics from a Logstash server. \
|
||||
|
|
|
@ -31,7 +31,7 @@ export function zookeeperMetricsSpecProvider(server, context) {
|
|||
isBeta: true,
|
||||
category: TUTORIAL_CATEGORY.METRICS,
|
||||
shortDescription: i18n.translate('kbn.server.tutorials.zookeeperMetrics.shortDescription', {
|
||||
defaultMessage: 'Fetch interal metrics from a Zookeeper server.',
|
||||
defaultMessage: 'Fetch internal metrics from a Zookeeper server.',
|
||||
}),
|
||||
longDescription: i18n.translate('kbn.server.tutorials.zookeeperMetrics.longDescription', {
|
||||
defaultMessage: 'The `{moduleName}` Metricbeat module fetches internal metrics from a Zookeeper server. \
|
||||
|
|
|
@ -112,8 +112,8 @@
|
|||
<i class="fa fa-danger text-danger"></i>
|
||||
<span
|
||||
i18n-id="metricVis.params.ranges.warning.specifyRangeDescription"
|
||||
i18n-default-message="{strongRequiredDescripion} You must specify at least one range."
|
||||
i18n-values="{ strongRequiredDescripion: '<strong>' + editorState.requiredDescription + '</strong>' }"
|
||||
i18n-default-message="{requiredDescription} You must specify at least one range."
|
||||
i18n-values="{ requiredDescription: '<strong>' + editorState.requiredDescription + '</strong>' }"
|
||||
>
|
||||
</span>
|
||||
</p>
|
||||
|
|
|
@ -17,7 +17,7 @@ exports[`BytesFormatEditor should render normally 1`] = `
|
|||
>
|
||||
<FormattedMessage
|
||||
defaultMessage="Documentation"
|
||||
id="common.ui.fieldEditor.number.documentaionLabel"
|
||||
id="common.ui.fieldEditor.number.documentationLabel"
|
||||
values={Object {}}
|
||||
/>
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ exports[`NumberFormatEditor should render normally 1`] = `
|
|||
>
|
||||
<FormattedMessage
|
||||
defaultMessage="Documentation"
|
||||
id="common.ui.fieldEditor.number.documentaionLabel"
|
||||
id="common.ui.fieldEditor.number.documentationLabel"
|
||||
values={Object {}}
|
||||
/>
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ export class NumberFormatEditor extends DefaultFormatEditor {
|
|||
helpText={
|
||||
<span>
|
||||
<EuiLink target="_window" href="https://adamwdraper.github.io/Numeral-js/">
|
||||
<FormattedMessage id="common.ui.fieldEditor.number.documentaionLabel" defaultMessage="Documentation" />
|
||||
<FormattedMessage id="common.ui.fieldEditor.number.documentationLabel" defaultMessage="Documentation" />
|
||||
<EuiIcon type="link" />
|
||||
</EuiLink>
|
||||
</span>
|
||||
|
|
|
@ -17,7 +17,7 @@ exports[`PercentFormatEditor should render normally 1`] = `
|
|||
>
|
||||
<FormattedMessage
|
||||
defaultMessage="Documentation"
|
||||
id="common.ui.fieldEditor.number.documentaionLabel"
|
||||
id="common.ui.fieldEditor.number.documentationLabel"
|
||||
values={Object {}}
|
||||
/>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue