Duplicate title warning wording (#75908)

Changed wording on duplicate title warning.
This commit is contained in:
Devon Thomson 2020-08-26 17:19:30 -04:00 committed by GitHub
parent deb71ecbb7
commit fd39f094cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 17 deletions

View file

@ -281,8 +281,8 @@ export class SavedObjectSaveModal extends React.Component<Props, SaveModalState>
title={
<FormattedMessage
id="savedObjects.saveModal.duplicateTitleLabel"
defaultMessage="A {objectType} with the title '{title}' already exists"
values={{ objectType: this.props.objectType, title: this.state.title }}
defaultMessage="This {objectType} already exists"
values={{ objectType: this.props.objectType }}
/>
}
color="warning"
@ -292,18 +292,9 @@ export class SavedObjectSaveModal extends React.Component<Props, SaveModalState>
<p>
<FormattedMessage
id="savedObjects.saveModal.duplicateTitleDescription"
defaultMessage="Clicking {confirmSaveLabel} will save the {objectType} with this duplicate title."
defaultMessage="Saving '{title}' creates a duplicate title."
values={{
objectType: this.props.objectType,
confirmSaveLabel: (
<strong>
{this.props.confirmButtonLabel
? this.props.confirmButtonLabel
: i18n.translate('savedObjects.saveModal.saveButtonLabel', {
defaultMessage: 'Save',
})}
</strong>
),
title: this.props.title,
}}
/>
</p>

View file

@ -2880,8 +2880,6 @@
"savedObjects.saveDuplicateRejectedDescription": "重複ファイルの保存確認が拒否されました",
"savedObjects.saveModal.cancelButtonLabel": "キャンセル",
"savedObjects.saveModal.descriptionLabel": "説明",
"savedObjects.saveModal.duplicateTitleDescription": "{confirmSaveLabel} をクリックすると {objectType} がこの重複したタイトルで保存されます。",
"savedObjects.saveModal.duplicateTitleLabel": "「{title}」というタイトルの {objectType} が既に存在します",
"savedObjects.saveModal.saveAsNewLabel": "新しい {objectType} として保存",
"savedObjects.saveModal.saveButtonLabel": "保存",
"savedObjects.saveModal.saveTitle": "{objectType} を保存",

View file

@ -2881,8 +2881,6 @@
"savedObjects.saveDuplicateRejectedDescription": "已拒绝使用重复标题保存确认",
"savedObjects.saveModal.cancelButtonLabel": "取消",
"savedObjects.saveModal.descriptionLabel": "描述",
"savedObjects.saveModal.duplicateTitleDescription": "单击“{confirmSaveLabel}”将会使用此重复标题保存 {objectType}。",
"savedObjects.saveModal.duplicateTitleLabel": "具有标题“{title}”的 {objectType} 已存在",
"savedObjects.saveModal.saveAsNewLabel": "另存为新的 {objectType}",
"savedObjects.saveModal.saveButtonLabel": "保存",
"savedObjects.saveModal.saveTitle": "保存 {objectType}",