Fix some strings after translator feedback (#32501)

* Fix some strings after translator feedback

* Fix jest tests

* Fix typo

* Fix Mocha tests

* Fix more mocha tests
This commit is contained in:
Tim Roes 2019-03-06 14:34:20 +01:00 committed by GitHub
parent 54e498200b
commit 184db14054
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 28 additions and 59 deletions

View file

@ -50,7 +50,7 @@ exports[`renders OptionsTab 1`] = `
data-test-subj="inputControlEditorPinFiltersCheckbox"
label={
<FormattedMessage
defaultMessage="Pin filters to global state"
defaultMessage="Pin filters for all applications"
id="inputControl.editor.optionsTab.pinFiltersLabel"
values={Object {}}
/>

View file

@ -86,7 +86,7 @@ export class OptionsTab extends Component {
<EuiSwitch
label={<FormattedMessage
id="inputControl.editor.optionsTab.pinFiltersLabel"
defaultMessage="Pin filters to global state"
defaultMessage="Pin filters for all applications"
/>}
checked={this.props.editorState.params.pinFilters}
onChange={this.handlePinFilters}

View file

@ -69,9 +69,6 @@ export default function (kibana) {
id: 'kibana',
title: 'Kibana',
listed: false,
description: i18n.translate('kbn.kibanaDescription', {
defaultMessage: 'the kibana you know and love'
}),
main: 'plugins/kibana/kibana',
},
styleSheetPaths: resolve(__dirname, 'public/index.scss'),
@ -83,9 +80,6 @@ export default function (kibana) {
}),
order: -1003,
url: `${kbnBaseUrl}#/discover`,
description: i18n.translate('kbn.discoverDescription', {
defaultMessage: 'interactively explore your data'
}),
icon: 'plugins/kibana/assets/discover.svg',
euiIconType: 'discoverApp',
}, {
@ -95,9 +89,6 @@ export default function (kibana) {
}),
order: -1002,
url: `${kbnBaseUrl}#/visualize`,
description: i18n.translate('kbn.visualizeDescription', {
defaultMessage: 'design data visualizations'
}),
icon: 'plugins/kibana/assets/visualize.svg',
euiIconType: 'visualizeApp',
}, {
@ -113,9 +104,6 @@ export default function (kibana) {
// the url above in order to preserve the original url for BWC. The subUrlBase helps the Chrome api nav
// to determine what url to use for the app link.
subUrlBase: `${kbnBaseUrl}#/dashboard`,
description: i18n.translate('kbn.dashboardDescription', {
defaultMessage: 'compose visualizations for much win'
}),
icon: 'plugins/kibana/assets/dashboard.svg',
euiIconType: 'dashboardApp',
}, {
@ -125,9 +113,6 @@ export default function (kibana) {
}),
order: 9001,
url: '/app/kibana#/dev_tools',
description: i18n.translate('kbn.devToolsDescription', {
defaultMessage: 'development tools'
}),
icon: 'plugins/kibana/assets/wrench.svg',
euiIconType: 'devToolsApp',
}, {
@ -137,9 +122,6 @@ export default function (kibana) {
}),
order: 9003,
url: `${kbnBaseUrl}#/management`,
description: i18n.translate('kbn.managementDescription', {
defaultMessage: 'define index patterns, change config, and more'
}),
icon: 'plugins/kibana/assets/settings.svg',
euiIconType: 'managementApp',
linkToLastSubUrl: false

View file

@ -71,7 +71,7 @@ class DashboardPanelUi extends React.Component<DashboardPanelUiProps, State> {
? null
: props.intl.formatMessage({
id: 'kbn.dashboard.panel.noEmbeddableFactoryErrorMessage',
defaultMessage: 'No factory found for embeddable',
defaultMessage: 'The feature to render this panel is missing.',
}),
};

View file

@ -136,6 +136,7 @@
for="outlineWeight"
i18n-id="regionMap.visParams.outlineWeightLabel"
i18n-default-message="Outline weight"
i18n-description="Describes the width of a line surrounding a country on a map."
></label>
<div class="visEditorSidebar__formControl">
<input

View file

@ -41,9 +41,6 @@ export default function (kibana) {
app: {
title: 'Timelion',
order: -1000,
description: i18n.translate('timelion.appDescription', {
defaultMessage: 'Time series expressions for everything'
}),
icon: 'plugins/timelion/icon.svg',
euiIconType: 'timelionApp',
main: 'plugins/timelion/app',

View file

@ -41,9 +41,8 @@ const orderAggSchema = (new Schemas([
{
group: 'none',
name: 'orderAgg',
title: i18n.translate('common.ui.aggTypes.buckets.terms.orderAggTitle', {
defaultMessage: 'Order Agg',
}),
// This string is never visible to the user so it doesn't need to be translated
title: 'Order Agg',
hideCustomLabel: true,
aggFilter: aggFilter
}
@ -304,6 +303,9 @@ export const termsBucketAgg = new BucketAggType({
name: 'missingBucketLabel',
default: i18n.translate('common.ui.aggTypes.buckets.terms.missingBucketLabel', {
defaultMessage: 'Missing',
description: `Default label used inside of charts for documents missing a specific field.
Can be seen when creating a chart with a terms aggregation and select the "Show missing values"
checkbox.`
}),
write: _.noop
},

View file

@ -6,6 +6,7 @@
id="visEditorDateRangeFrom{{agg.id}}"
i18n-id="common.ui.aggTypes.dateRanges.fromColumnLabel"
i18n-default-message="From"
i18n-description="Describes the beginning of a date range, e.g. *From* 2018-02-26 To 2018-02-28"
></label>
</th>
<th scope="col" colspan="2">
@ -13,6 +14,7 @@
id="visEditorDateRangeTo{{agg.id}}"
i18n-id="common.ui.aggTypes.dateRanges.toColumnLabel"
i18n-default-message="To"
i18n-description="Describes the end of a date range, e.g. From 2018-02-26 *To* 2018-02-28"
></label>
</th>
</tr>

View file

@ -9,6 +9,7 @@ exports[`ScriptingDisabledCallOut should render normally 1`] = `
title={
<FormattedMessage
defaultMessage="Scripting disabled"
description="Showing the status that scripting is disabled in Elasticsearch. Not an update message, that it JUST got disabled."
id="common.ui.fieldEditor.disabledCallOutHeader"
values={Object {}}
/>

View file

@ -32,7 +32,13 @@ export const ScriptingDisabledCallOut = ({
return isVisible ? (
<Fragment>
<EuiCallOut
title={<FormattedMessage id="common.ui.fieldEditor.disabledCallOutHeader" defaultMessage="Scripting disabled" />}
title={
<FormattedMessage
id="common.ui.fieldEditor.disabledCallOutHeader"
defaultMessage="Scripting disabled"
description="Showing the status that scripting is disabled in Elasticsearch. Not an update message, that it JUST got disabled."
/>
}
color="danger"
iconType="alert"
>

View file

@ -387,7 +387,14 @@ export class FieldEditorComponent extends PureComponent {
const { intl } = this.props;
return (
<EuiFormRow label={intl.formatMessage({ id: 'common.ui.fieldEditor.popularityLabel', defaultMessage: 'Popularity' })}>
<EuiFormRow label={
intl.formatMessage({
id: 'common.ui.fieldEditor.popularityLabel',
defaultMessage: 'Popularity',
description: '"Popularity" refers to Kibana\'s measurement how popular a field is (i.e. how commonly it is used).',
})
}
>
<EuiFieldNumber
value={field.count}
data-test-subj="editorFieldCount"

View file

@ -29,7 +29,6 @@ function createStubUiAppSpec(extraParams) {
main: 'main.js',
title: 'UIApp Test',
order: 9000,
description: 'Test of UI App Constructor',
icon: 'ui_app_test.svg',
linkToLastSubUrl: true,
hidden: false,
@ -139,7 +138,6 @@ describe('ui apps / UiApp', () => {
expect(JSON.parse(JSON.stringify(app))).to.eql({
id: spec.id,
title: spec.title,
description: spec.description,
icon: spec.icon,
main: spec.main,
linkToLastSubUrl: spec.linkToLastSubUrl,
@ -149,7 +147,6 @@ describe('ui apps / UiApp', () => {
order: 9000,
url: '/app/uiapp-test',
subUrlBase: '/app/uiapp-test',
description: 'Test of UI App Constructor',
icon: 'ui_app_test.svg',
linkToLastSubUrl: true,
hidden: false,

View file

@ -27,7 +27,6 @@ export class UiApp {
main,
title,
order = 0,
description,
icon,
euiIconType,
hidden,
@ -44,7 +43,6 @@ export class UiApp {
this._main = main;
this._title = title;
this._order = order;
this._description = description;
this._icon = icon;
this._euiIconType = euiIconType;
this._linkToLastSubUrl = linkToLastSubUrl;
@ -66,7 +64,6 @@ export class UiApp {
id: this._id,
title: this._title,
order: this._order,
description: this._description,
icon: this._icon,
euiIconType: this._euiIconType,
url: this._url,
@ -118,7 +115,6 @@ export class UiApp {
return {
id: this._id,
title: this._title,
description: this._description,
icon: this._icon,
euiIconType: this._euiIconType,
main: this._main,

View file

@ -29,7 +29,6 @@ describe('UiNavLink', () => {
title: 'Discover',
order: -1003,
url: '/app/kibana#/discover',
description: 'interactively explore your data',
icon: 'plugins/kibana/assets/discover.svg',
euiIconType: 'discoverApp',
hidden: true,
@ -43,7 +42,6 @@ describe('UiNavLink', () => {
order: spec.order,
url: spec.url,
subUrlBase: spec.url,
description: spec.description,
icon: spec.icon,
euiIconType: spec.euiIconType,
hidden: spec.hidden,
@ -60,7 +58,6 @@ describe('UiNavLink', () => {
id: 'kibana:discover',
title: 'Discover',
url: '/app/kibana#/discover',
description: 'interactively explore your data',
icon: 'plugins/kibana/assets/discover.svg',
};
const link = new UiNavLink(spec);
@ -74,7 +71,6 @@ describe('UiNavLink', () => {
title: 'Discover',
order: -1003,
url: '/app/kibana#/discover',
description: 'interactively explore your data',
icon: 'plugins/kibana/assets/discover.svg',
linkToLastSubUrl: false
};
@ -89,7 +85,6 @@ describe('UiNavLink', () => {
title: 'Discover',
order: -1003,
url: '/app/kibana#/discover',
description: 'interactively explore your data',
icon: 'plugins/kibana/assets/discover.svg',
};
const link = new UiNavLink(spec);
@ -103,7 +98,6 @@ describe('UiNavLink', () => {
title: 'Discover',
order: -1003,
url: '/app/kibana#/discover',
description: 'interactively explore your data',
icon: 'plugins/kibana/assets/discover.svg',
};
const link = new UiNavLink(spec);
@ -117,7 +111,6 @@ describe('UiNavLink', () => {
title: 'Discover',
order: -1003,
url: '/app/kibana#/discover',
description: 'interactively explore your data',
icon: 'plugins/kibana/assets/discover.svg',
};
const link = new UiNavLink(spec);
@ -131,7 +124,6 @@ describe('UiNavLink', () => {
title: 'Discover',
order: -1003,
url: '/app/kibana#/discover',
description: 'interactively explore your data',
icon: 'plugins/kibana/assets/discover.svg',
};
const link = new UiNavLink(spec);

View file

@ -25,7 +25,6 @@ export class UiNavLink {
order = 0,
url,
subUrlBase,
description,
icon,
euiIconType,
linkToLastSubUrl = true,
@ -39,7 +38,6 @@ export class UiNavLink {
this._order = order;
this._url = url;
this._subUrlBase = subUrlBase || url;
this._description = description;
this._icon = icon;
this._euiIconType = euiIconType;
this._linkToLastSubUrl = linkToLastSubUrl;
@ -59,7 +57,6 @@ export class UiNavLink {
order: this._order,
url: this._url,
subUrlBase: this._subUrlBase,
description: this._description,
icon: this._icon,
euiIconType: this._euiIconType,
linkToLastSubUrl: this._linkToLastSubUrl,

View file

@ -23,7 +23,6 @@ export function graph(kibana) {
order: 9000,
icon: 'plugins/graph/icon.png',
euiIconType: 'graphApp',
description: 'Graph exploration',
main: 'plugins/graph/app',
},
styleSheetPaths: resolve(__dirname, 'public/index.scss'),

View file

@ -109,7 +109,6 @@
"common.ui.aggTypes.buckets.significantTermsLabel": "{fieldName} 中排名前 {size} 的罕见词",
"common.ui.aggTypes.buckets.significantTermsTitle": "重要词",
"common.ui.aggTypes.buckets.terms.missingBucketLabel": "缺失",
"common.ui.aggTypes.buckets.terms.orderAggTitle": "顺序聚合",
"common.ui.aggTypes.buckets.terms.orderAscendingTitle": "升序",
"common.ui.aggTypes.buckets.terms.orderDescendingTitle": "降序",
"common.ui.aggTypes.buckets.terms.otherBucketLabel": "其他",
@ -763,7 +762,6 @@
"inputControl.editor.listControl.parentLabel": "父控件",
"inputControl.editor.listControl.sizeDescription": "选项数目",
"inputControl.editor.listControl.sizeLabel": "大小",
"inputControl.editor.optionsTab.pinFiltersLabel": "将筛选固定在全局状态",
"inputControl.editor.optionsTab.updateFilterLabel": "每次更改时更新 Kibana 筛选",
"inputControl.editor.optionsTab.useTimeFilterLabel": "使用时间筛选",
"inputControl.editor.rangeControl.decimalPlacesLabel": "小数位数",
@ -1201,7 +1199,6 @@
"kbn.dashboard.panel.editPanel.displayName": "编辑可视化",
"kbn.dashboard.panel.inspectorPanel.displayName": "检查",
"kbn.dashboard.panel.invalidVersionErrorMessage": "版本 {version} 无效,应为 {semver}",
"kbn.dashboard.panel.noEmbeddableFactoryErrorMessage": "未找到 Embeddable 的工厂",
"kbn.dashboard.panel.noFoundEmbeddableFactoryErrorMessage": "未找到面板类型 {panelType} 的 Embeddable 工厂",
"kbn.dashboard.panel.optionsMenu.optionsContextMenuTitle": "选项",
"kbn.dashboard.panel.optionsMenu.panelOptionsButtonAriaLabel": "面板选项",
@ -1256,11 +1253,9 @@
"kbn.dashboard.topNave.viewConfigDescription": "取消编辑并切换到仅查看模式",
"kbn.dashboard.urlWasRemovedInSixZeroWarningMessage": "6.0 中未移除 url“dashboard/create”。请更新您的书签。",
"kbn.dashboard.visitVisualizeAppLinkText": "访问 Visualize 应用",
"kbn.dashboardDescription": "创作吸引注意力的可视化",
"kbn.dashboardTitle": "仪表板",
"kbn.devTools.consoleDescription": "跳过 cURL 并使用此 JSON 接口来直接处理您的数据。",
"kbn.devTools.consoleTitle": "Console",
"kbn.devToolsDescription": "开发工具",
"kbn.devToolsTitle": "开发工具",
"kbn.discover.backToTopLinkText": "返至顶部。",
"kbn.discover.bucketIntervalTooltip": "此时间间隔将创建{bucketsDescription}而无法在选定时间范围内显示 ,因此其已缩放至 {bucketIntervalDescription}",
@ -1346,7 +1341,6 @@
"kbn.discover.topNav.openSearchPanel.noSearchesFoundDescription": "未找到匹配的搜索。",
"kbn.discover.topNav.openSearchPanel.openSearchTitle": "打开搜索",
"kbn.discover.valueIsNotConfiguredIndexPatternIDWarningTitle": "{stateVal} 不是配置的索引模式 ID",
"kbn.discoverDescription": "以交互方式浏览您的数据",
"kbn.discoverTitle": "Discover",
"kbn.doc.couldNotFindDocumentsDescription": "抱歉,我无法在该索引中找到任何匹配该 ID 且为该类型的文档。我已进行非常努力的尝试。我希望它存在。有时候,我觉得文件一定长了腿,自行逃离了索引。有点诡异。我希望能够提供一些建议让您会感觉好一点",
"kbn.doc.failedToExecuteQueryDescription": "无法执行查询",
@ -1437,7 +1431,6 @@
"kbn.home.tutorial.unhandledInstructionTypeErrorDescription": "未处理的指令类型 {visibleInstructions}",
"kbn.home.welcomeDescription": "您了解 Elastic Stack 的窗口",
"kbn.home.welcomeTitle": "欢迎使用 Kibana",
"kbn.kibanaDescription": "您了解并喜爱的 kibana",
"kbn.management.createIndexPattern.betaLabel": "公测版",
"kbn.management.createIndexPattern.emptyState.checkDataButton": "检查新数据",
"kbn.management.createIndexPattern.emptyStateHeader": "找不到任何 Elasticsearch 数据",
@ -1728,7 +1721,6 @@
"kbn.management.settings.searchBar.unableToParseQueryErrorMessage": "无法解析查询",
"kbn.management.settings.searchBarAriaLabel": "搜索高级设置",
"kbn.management.settings.sectionLabel": "高级设置",
"kbn.managementDescription": "定义索引模式、更改配置等等",
"kbn.managementTitle": "管理",
"kbn.server.tutorials.aerospikeMetrics.artifacts.application.label": "Discover",
"kbn.server.tutorials.aerospikeMetrics.longDescription": "Metricbeat 模块 `aerospike` 从 Aerospike 提取内部指标。[了解详情]({learnMoreLink})。",
@ -2055,7 +2047,6 @@
"kbn.visualize.topNavMenu.shareVisualizationButtonAriaLabel": "共享可视化",
"kbn.visualize.visualizeDescription": "创建可视化并聚合存储在 Elasticsearch 索引中的数据。",
"kbn.visualize.visualizeListingBreadcrumbsTitle": "可视化",
"kbn.visualizeDescription": "设计数据可视化",
"kbn.visualizeTitle": "可视化",
"kbnDocViews.table.fieldNamesBeginningWithUnderscoreUnsupportedTooltip": "不支持以 {underscoreSign} 开头的字段名称",
"kbnDocViews.table.filterForFieldPresentButtonAriaLabel": "筛留存在的字段",
@ -2414,7 +2405,6 @@
"tileMap.wmsOptions.wmsStylesLabel": "WMS 样式*",
"tileMap.wmsOptions.wmsUrlLabel": "WMS url*",
"tileMap.wmsOptions.wmsVersionLabel": "WMS 版本*",
"timelion.appDescription": "适用于所有内容的时序表达式",
"timelion.cells.actions.fullscreenAriaLabel": "全屏图表",
"timelion.cells.actions.fullscreenTooltip": "全屏",
"timelion.cells.actions.removeAriaLabel": "删除图表",
@ -8215,4 +8205,4 @@
"xpack.watcher.watchActionsTitle": "满足后将执行 {watchActionsCount, plural, one{# 个操作} other {# 个操作}}",
"xpack.watcher.watcherDescription": "通过创建、管理和监测警报来检测数据中的更改。"
}
}
}