Skip to content

Commit

Permalink
Fixed i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
thomheymann committed May 12, 2021
1 parent 757db8d commit c7c417e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ export const ConfirmDeleteModal: FunctionComponent<Props> = ({
<EuiCallOut
color="warning"
iconType="alert"
title={i18n.translate('xpack.spaces.management.confirmDeleteModal.cancelButtonLabel', {
title={i18n.translate('xpack.spaces.management.confirmDeleteModal.currentSpaceTitle', {
defaultMessage: 'You are currently in this space.',
})}
>
<FormattedMessage
id="xpack.spaces.management.confirmDeleteModal.redirectAfterDeletingCurrentSpaceWarningMessage"
id="xpack.spaces.management.confirmDeleteModal.currentSpaceDescription"
defaultMessage="Once deleted, you must choose a different space."
/>
</EuiCallOut>
Expand All @@ -121,7 +121,7 @@ export const ConfirmDeleteModal: FunctionComponent<Props> = ({
</p>
<p>
<FormattedMessage
id="xpack.security.management.users.confirmDelete.cannotUndoWarning"
id="xpack.spaces.management.confirmDeleteModal.cannotUndoWarning"
defaultMessage="You can't recover deleted spaces."
/>
</p>
Expand Down
12 changes: 0 additions & 12 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -22655,13 +22655,6 @@
"xpack.spaces.management.confirmAlterActiveSpaceModal.reloadWarningMessage": "このスペースで表示される機能を更新しました。保存後にページが更新されます。",
"xpack.spaces.management.confirmAlterActiveSpaceModal.title": "スペースの更新の確認",
"xpack.spaces.management.confirmAlterActiveSpaceModal.updateSpaceButton": "スペースを更新",
"xpack.spaces.management.confirmDeleteModal.allContentsText": "すべてのコンテンツ",
"xpack.spaces.management.confirmDeleteModal.cancelButtonLabel": "キャンセル",
"xpack.spaces.management.confirmDeleteModal.confirmDeleteSpaceButtonLabel": "スペース {spaceName} を削除",
"xpack.spaces.management.confirmDeleteModal.confirmSpaceNameFormRowLabel": "削除するスペース名の確定",
"xpack.spaces.management.confirmDeleteModal.deleteSpaceAndAllContentsButtonLabel": " スペースとすべてのコンテンツを削除",
"xpack.spaces.management.confirmDeleteModal.redirectAfterDeletingCurrentSpaceWarningMessage": "現在のスペース {name} を削除しようとしています。続行すると、別のスペースを選択する画面に移動します。",
"xpack.spaces.management.confirmDeleteModal.spaceNamesDoNoMatchErrorMessage": "スペース名が一致していません。",
"xpack.spaces.management.copyToSpace.actionDescription": "1つ以上のスペースでこの保存されたオブジェクトのコピーを作成します",
"xpack.spaces.management.copyToSpace.actionTitle": "スペースにコピー",
"xpack.spaces.management.copyToSpace.cancelButton": "キャンセル",
Expand Down Expand Up @@ -22726,8 +22719,6 @@
"xpack.spaces.management.customizeSpaceAvatar.selectImageUrl": "画像ファイルを選択",
"xpack.spaces.management.deleteSpacesButton.deleteSpaceAriaLabel": "スペースを削除",
"xpack.spaces.management.deleteSpacesButton.deleteSpaceButtonLabel": "スペースを削除",
"xpack.spaces.management.deleteSpacesButton.deleteSpaceErrorTitle": "スペースの削除中にエラーが発生:{errorMessage}",
"xpack.spaces.management.deleteSpacesButton.spaceSuccessfullyDeletedNotificationMessage": "{spaceName} スペースが削除されました。",
"xpack.spaces.management.deselectAllFeaturesLink": "すべて選択解除",
"xpack.spaces.management.enabledFeatures.featureCategoryButtonLabel": "カテゴリ切り替え",
"xpack.spaces.management.enabledSpaceFeatures.allFeaturesEnabledMessage": " (表示されているすべての機能) ",
Expand All @@ -22743,7 +22734,6 @@
"xpack.spaces.management.manageSpacePage.avatarFormRowLabel": "アバター",
"xpack.spaces.management.manageSpacePage.awesomeSpacePlaceholder": "素晴らしいスペース",
"xpack.spaces.management.manageSpacePage.cancelSpaceButton": "キャンセル",
"xpack.spaces.management.manageSpacePage.clickToCustomizeTooltip": "クリックしてこのスペースのアバターをカスタマイズします",
"xpack.spaces.management.manageSpacePage.createSpaceButton": "スペースを作成",
"xpack.spaces.management.manageSpacePage.createSpaceTitle": "スペースの作成",
"xpack.spaces.management.manageSpacePage.customizeSpacePanelDescription": "スペースに名前を付けてアバターをカスタマイズします。",
Expand Down Expand Up @@ -22778,7 +22768,6 @@
"xpack.spaces.management.spacesGridPage.deleteActionName": "{spaceName} を削除。",
"xpack.spaces.management.spacesGridPage.descriptionColumnName": "説明",
"xpack.spaces.management.spacesGridPage.editSpaceActionName": "{spaceName} を編集。",
"xpack.spaces.management.spacesGridPage.errorDeletingSpaceErrorMessage": "スペースの削除中にエラーが発生:{errorMessage}",
"xpack.spaces.management.spacesGridPage.errorTitle": "スペースの読み込みエラー",
"xpack.spaces.management.spacesGridPage.featuresColumnName": "機能",
"xpack.spaces.management.spacesGridPage.identifierColumnName": "識別子",
Expand All @@ -22788,7 +22777,6 @@
"xpack.spaces.management.spacesGridPage.someFeaturesEnabled": "{totalFeatureCount} 件中 {enabledFeatureCount} 件の機能を表示中",
"xpack.spaces.management.spacesGridPage.spaceColumnName": "スペース",
"xpack.spaces.management.spacesGridPage.spacesTitle": "スペース",
"xpack.spaces.management.spacesGridPage.spaceSuccessfullyDeletedNotificationMessage": "「{spaceName}」スペースが削除されました。",
"xpack.spaces.management.spacesGridPage.tableCaption": "Kibana スペース",
"xpack.spaces.management.toggleAllFeaturesLink": " (すべて変更) ",
"xpack.spaces.management.unauthorizedPrompt.permissionDeniedDescription": "スペースを管理するアクセス権がありません。",
Expand Down
13 changes: 0 additions & 13 deletions x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -23014,14 +23014,6 @@
"xpack.spaces.management.confirmAlterActiveSpaceModal.reloadWarningMessage": "您已更新此工作区中的可见功能。保存后,您的页面将重新加载。",
"xpack.spaces.management.confirmAlterActiveSpaceModal.title": "确认更新工作区",
"xpack.spaces.management.confirmAlterActiveSpaceModal.updateSpaceButton": "更新工作区",
"xpack.spaces.management.confirmDeleteModal.allContentsText": "所有内容",
"xpack.spaces.management.confirmDeleteModal.cancelButtonLabel": "取消",
"xpack.spaces.management.confirmDeleteModal.confirmDeleteSpaceButtonLabel": "删除空间 {spaceName}",
"xpack.spaces.management.confirmDeleteModal.confirmSpaceNameFormRowLabel": "确认要删除的工作区名称",
"xpack.spaces.management.confirmDeleteModal.deleteSpaceAndAllContentsButtonLabel": " 删除空间及其所有内容",
"xpack.spaces.management.confirmDeleteModal.deletingSpaceWarningMessage": "删除空间会永久删除空间及{allContents}。此操作无法撤消。",
"xpack.spaces.management.confirmDeleteModal.redirectAfterDeletingCurrentSpaceWarningMessage": "您即将删除当前空间 {name}。如果继续,您将会被重定向以选择其他空间的位置。",
"xpack.spaces.management.confirmDeleteModal.spaceNamesDoNoMatchErrorMessage": "空间名称不匹配。",
"xpack.spaces.management.copyToSpace.actionDescription": "在一个或多个工作区中创建此已保存对象的副本",
"xpack.spaces.management.copyToSpace.actionTitle": "复制到工作区",
"xpack.spaces.management.copyToSpace.cancelButton": "取消",
Expand Down Expand Up @@ -23087,8 +23079,6 @@
"xpack.spaces.management.customizeSpaceAvatar.selectImageUrl": "选择图像文件",
"xpack.spaces.management.deleteSpacesButton.deleteSpaceAriaLabel": "删除此空间",
"xpack.spaces.management.deleteSpacesButton.deleteSpaceButtonLabel": "删除空间",
"xpack.spaces.management.deleteSpacesButton.deleteSpaceErrorTitle": "删除空间时出错:{errorMessage}",
"xpack.spaces.management.deleteSpacesButton.spaceSuccessfullyDeletedNotificationMessage": "已删除 {spaceName} 空间。",
"xpack.spaces.management.deselectAllFeaturesLink": "取消全选",
"xpack.spaces.management.enabledFeatures.featureCategoryButtonLabel": "类别切换",
"xpack.spaces.management.enabledSpaceFeatures.allFeaturesEnabledMessage": " (所有可见功能) ",
Expand All @@ -23104,7 +23094,6 @@
"xpack.spaces.management.manageSpacePage.avatarFormRowLabel": "头像",
"xpack.spaces.management.manageSpacePage.awesomeSpacePlaceholder": "超卓的空间",
"xpack.spaces.management.manageSpacePage.cancelSpaceButton": "取消",
"xpack.spaces.management.manageSpacePage.clickToCustomizeTooltip": "单击可定制此工作区头像",
"xpack.spaces.management.manageSpacePage.createSpaceButton": "创建工作区",
"xpack.spaces.management.manageSpacePage.createSpaceTitle": "创建一个空间",
"xpack.spaces.management.manageSpacePage.customizeSpacePanelDescription": "命名您的工作区并定制其头像。",
Expand Down Expand Up @@ -23139,7 +23128,6 @@
"xpack.spaces.management.spacesGridPage.deleteActionName": "删除 {spaceName}。",
"xpack.spaces.management.spacesGridPage.descriptionColumnName": "描述",
"xpack.spaces.management.spacesGridPage.editSpaceActionName": "编辑 {spaceName}。",
"xpack.spaces.management.spacesGridPage.errorDeletingSpaceErrorMessage": "删除空间时出错:{errorMessage}",
"xpack.spaces.management.spacesGridPage.errorTitle": "加载工作区时出错",
"xpack.spaces.management.spacesGridPage.featuresColumnName": "功能",
"xpack.spaces.management.spacesGridPage.identifierColumnName": "标识符",
Expand All @@ -23149,7 +23137,6 @@
"xpack.spaces.management.spacesGridPage.someFeaturesEnabled": "{enabledFeatureCount} / {totalFeatureCount} 个功能可见",
"xpack.spaces.management.spacesGridPage.spaceColumnName": "工作区",
"xpack.spaces.management.spacesGridPage.spacesTitle": "工作区",
"xpack.spaces.management.spacesGridPage.spaceSuccessfullyDeletedNotificationMessage": "已删除“{spaceName}”工作区。",
"xpack.spaces.management.spacesGridPage.tableCaption": "Kibana 工作区",
"xpack.spaces.management.toggleAllFeaturesLink": " (全部更改) ",
"xpack.spaces.management.unauthorizedPrompt.permissionDeniedDescription": "您无权管理工作区。",
Expand Down
1 change: 0 additions & 1 deletion x-pack/test/accessibility/apps/spaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

// test starts with deleting space b so we can get the space selection page instead of logging out in the test
it('a11y test for space selection page', async () => {
await PageObjects.spaceSelector.setSpaceNameTobeDeleted('space_b');
await PageObjects.spaceSelector.confirmDeletingSpace();
await a11y.testAppSnapshot();
await PageObjects.spaceSelector.clickSpaceCard('default');
Expand Down
4 changes: 0 additions & 4 deletions x-pack/test/functional/page_objects/space_selector_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,6 @@ export function SpaceSelectorPageProvider({ getService, getPageObjects }: FtrPro
await testSubjects.click(`${spaceName}-deleteSpace`);
}

async setSpaceNameTobeDeleted(spaceName: string) {
await testSubjects.setValue('deleteSpaceInput', spaceName);
}

async cancelDeletingSpace() {
await testSubjects.click('confirmModalCancelButton');
}
Expand Down

0 comments on commit c7c417e

Please sign in to comment.