* Revert translations for Vega and Markdown label * Add description for translated
This commit is contained in:
parent
57196aa7cd
commit
0edea9b24f
|
@ -36,7 +36,7 @@ function MarkdownVisProvider(Private, i18n) {
|
||||||
// Vis object of this type.
|
// Vis object of this type.
|
||||||
return VisFactory.createReactVisualization({
|
return VisFactory.createReactVisualization({
|
||||||
name: 'markdown',
|
name: 'markdown',
|
||||||
title: i18n('markdownVis.markdownTitle', { defaultMessage: 'Markdown' }),
|
title: 'Markdown',
|
||||||
isAccessible: true,
|
isAccessible: true,
|
||||||
icon: 'visText',
|
icon: 'visText',
|
||||||
description: i18n('markdownVis.markdownDescription', { defaultMessage: 'Create a document using markdown syntax' }),
|
description: i18n('markdownVis.markdownDescription', { defaultMessage: 'Create a document using markdown syntax' }),
|
||||||
|
|
|
@ -1,12 +1,7 @@
|
||||||
<div class="kuiSideBarSection">
|
<div class="kuiSideBarSection">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="clearfix form-group">
|
<div class="clearfix form-group">
|
||||||
<label
|
<label for="markdownVisInput">Markdown</label>
|
||||||
class="pull-left"
|
|
||||||
for="markdownVisInput"
|
|
||||||
i18n-id="markdownVis.params.markdownLabel"
|
|
||||||
i18n-default-message="Markdown"
|
|
||||||
></label>
|
|
||||||
<small class="pull-right">
|
<small class="pull-right">
|
||||||
<a target="_window" href="https://help.github.com/articles/github-flavored-markdown/">
|
<a target="_window" href="https://help.github.com/articles/github-flavored-markdown/">
|
||||||
<icon aria-hidden="true" size="'s'" type="'link'"></icon>
|
<icon aria-hidden="true" size="'s'" type="'link'"></icon>
|
||||||
|
|
|
@ -264,10 +264,7 @@ class MarkdownPanelConfigUi extends Component {
|
||||||
isSelected={selectedTab === 'markdown'}
|
isSelected={selectedTab === 'markdown'}
|
||||||
onClick={() => this.switchTab('markdown')}
|
onClick={() => this.switchTab('markdown')}
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
Markdown
|
||||||
id="tsvb.markdown.markdownTab.markdownButtonLabel"
|
|
||||||
defaultMessage="Markdown"
|
|
||||||
/>
|
|
||||||
</EuiTab>
|
</EuiTab>
|
||||||
<EuiTab
|
<EuiTab
|
||||||
data-test-subj="markdownDataBtn"
|
data-test-subj="markdownDataBtn"
|
||||||
|
|
|
@ -56,7 +56,7 @@ const VisPicker = injectI18n(function (props) {
|
||||||
{ type: 'metric', label: intl.formatMessage({ id: 'tsvb.visPicker.metricLabel', defaultMessage: 'Metric' }) },
|
{ type: 'metric', label: intl.formatMessage({ id: 'tsvb.visPicker.metricLabel', defaultMessage: 'Metric' }) },
|
||||||
{ type: 'top_n', label: intl.formatMessage({ id: 'tsvb.visPicker.topNLabel', defaultMessage: 'Top N' }) },
|
{ type: 'top_n', label: intl.formatMessage({ id: 'tsvb.visPicker.topNLabel', defaultMessage: 'Top N' }) },
|
||||||
{ type: 'gauge', label: intl.formatMessage({ id: 'tsvb.visPicker.gaugeLabel', defaultMessage: 'Gauge' }) },
|
{ type: 'gauge', label: intl.formatMessage({ id: 'tsvb.visPicker.gaugeLabel', defaultMessage: 'Gauge' }) },
|
||||||
{ type: 'markdown', label: intl.formatMessage({ id: 'tsvb.visPicker.markdownLabel', defaultMessage: 'Markdown' }) },
|
{ type: 'markdown', label: 'Markdown' },
|
||||||
{ type: 'table', label: intl.formatMessage({ id: 'tsvb.visPicker.tableLabel', defaultMessage: 'Table' }) }
|
{ type: 'table', label: intl.formatMessage({ id: 'tsvb.visPicker.tableLabel', defaultMessage: 'Table' }) }
|
||||||
].map(item => {
|
].map(item => {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -41,11 +41,10 @@ VisTypesRegistryProvider.register((Private) => {
|
||||||
|
|
||||||
return VisFactory.createBaseVisualization({
|
return VisFactory.createBaseVisualization({
|
||||||
name: 'vega',
|
name: 'vega',
|
||||||
title: i18n.translate('vega.type.vegaTitle', {
|
title: 'Vega',
|
||||||
defaultMessage: 'Vega',
|
|
||||||
}),
|
|
||||||
description: i18n.translate('vega.type.vegaВescription', {
|
description: i18n.translate('vega.type.vegaВescription', {
|
||||||
defaultMessage: 'Create custom visualizations using Vega and Vega-Lite',
|
defaultMessage: 'Create custom visualizations using Vega and Vega-Lite',
|
||||||
|
description: 'Vega and Vega-Lite are product names and should not be translated',
|
||||||
}),
|
}),
|
||||||
icon: 'visVega',
|
icon: 'visVega',
|
||||||
visConfig: { defaults: { spec: defaultSpec } },
|
visConfig: { defaults: { spec: defaultSpec } },
|
||||||
|
|
Loading…
Reference in a new issue