[i18n] Revert translations for Vega and Markdown labels (#27285) (#27298)

* Revert translations for Vega and Markdown label

* Add description for translated
This commit is contained in:
Maryia Lapata 2018-12-17 17:53:43 +03:00 committed by GitHub
parent 57196aa7cd
commit 0edea9b24f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 15 deletions

View file

@ -36,7 +36,7 @@ function MarkdownVisProvider(Private, i18n) {
// Vis object of this type.
return VisFactory.createReactVisualization({
name: 'markdown',
title: i18n('markdownVis.markdownTitle', { defaultMessage: 'Markdown' }),
title: 'Markdown',
isAccessible: true,
icon: 'visText',
description: i18n('markdownVis.markdownDescription', { defaultMessage: 'Create a document using markdown syntax' }),

View file

@ -1,12 +1,7 @@
<div class="kuiSideBarSection">
<div class="form-group">
<div class="clearfix form-group">
<label
class="pull-left"
for="markdownVisInput"
i18n-id="markdownVis.params.markdownLabel"
i18n-default-message="Markdown"
></label>
<label for="markdownVisInput">Markdown</label>
<small class="pull-right">
<a target="_window" href="https://help.github.com/articles/github-flavored-markdown/">
<icon aria-hidden="true" size="'s'" type="'link'"></icon>

View file

@ -264,10 +264,7 @@ class MarkdownPanelConfigUi extends Component {
isSelected={selectedTab === 'markdown'}
onClick={() => this.switchTab('markdown')}
>
<FormattedMessage
id="tsvb.markdown.markdownTab.markdownButtonLabel"
defaultMessage="Markdown"
/>
Markdown
</EuiTab>
<EuiTab
data-test-subj="markdownDataBtn"

View file

@ -56,7 +56,7 @@ const VisPicker = injectI18n(function (props) {
{ 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: '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' }) }
].map(item => {
return (

View file

@ -41,11 +41,10 @@ VisTypesRegistryProvider.register((Private) => {
return VisFactory.createBaseVisualization({
name: 'vega',
title: i18n.translate('vega.type.vegaTitle', {
defaultMessage: 'Vega',
}),
title: 'Vega',
description: i18n.translate('vega.type.vegaВescription', {
defaultMessage: 'Create custom visualizations using Vega and Vega-Lite',
description: 'Vega and Vega-Lite are product names and should not be translated',
}),
icon: 'visVega',
visConfig: { defaults: { spec: defaultSpec } },