Skip to content

Commit

Permalink
Remove unnecessary job and rule text
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Aug 28, 2020
1 parent 69599e0 commit 62aef0f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class DeleteRuleModal extends Component {
title={
<FormattedMessage
id="xpack.ml.ruleEditor.deleteRuleModal.deleteRuleTitle"
defaultMessage="Delete rule"
defaultMessage="Delete rule?"
/>
}
onCancel={this.closeModal}
Expand All @@ -66,14 +66,7 @@ export class DeleteRuleModal extends Component {
/>
}
defaultFocusedButton={EUI_MODAL_CONFIRM_BUTTON}
>
<p>
<FormattedMessage
id="xpack.ml.ruleEditor.deleteRuleModal.deleteRuleDescription"
defaultMessage="Are you sure you want to delete this rule?"
/>
</p>
</EuiConfirmModal>
/>
</EuiOverlayMask>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class DeleteJobModal extends Component {
const title = (
<FormattedMessage
id="xpack.ml.jobsList.deleteJobModal.deleteJobsTitle"
defaultMessage="Delete {jobsCount, plural, one {{jobId}} other {# jobs}}"
defaultMessage="Delete {jobsCount, plural, one {{jobId}} other {# jobs}}?"
values={{
jobsCount: this.state.jobs.length,
jobId: this.state.jobs[0].id,
Expand Down Expand Up @@ -144,15 +144,6 @@ export class DeleteJobModal extends Component {

{this.state.deleting === false && (
<React.Fragment>
<p>
<FormattedMessage
id="xpack.ml.jobsList.deleteJobModal.deleteJobsDescription"
defaultMessage="Are you sure you want to delete {jobsCount, plural, one {this job} other {these jobs}}?"
values={{
jobsCount: this.state.jobs.length,
}}
/>
</p>
<p>
<FormattedMessage
id="xpack.ml.jobsList.deleteJobModal.deleteMultipleJobsDescription"
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -11635,7 +11635,6 @@
"xpack.ml.jobsList.deleteJobModal.cancelButtonLabel": "キャンセル",
"xpack.ml.jobsList.deleteJobModal.closeButtonLabel": "閉じる",
"xpack.ml.jobsList.deleteJobModal.deleteButtonLabel": "削除",
"xpack.ml.jobsList.deleteJobModal.deleteJobsDescription": "{jobsCount, plural, one {このジョブ} other {これらのジョブ}}を削除してよろしいですか?",
"xpack.ml.jobsList.deleteJobModal.deleteJobsTitle": "{jobsCount, plural, one {{jobId}} other {# 件のジョブ}}を削除",
"xpack.ml.jobsList.deleteJobModal.deleteMultipleJobsDescription": "{jobsCount, plural, one {ジョブ} other {複数ジョブ}}の削除には時間がかかる場合があります。{jobsCount, plural, one {} other {}}バックグラウンドで削除され、ジョブリストからすぐに消えない場合があります",
"xpack.ml.jobsList.deleteJobModal.deletingJobsStatusLabel": "ジョブを削除中",
Expand Down Expand Up @@ -12304,7 +12303,6 @@
"xpack.ml.ruleEditor.deleteJobRule.ruleNoLongerExistsErrorMessage": "ジョブ {jobId} の検知器インデックス {detectorIndex} のルールが現在存在しません",
"xpack.ml.ruleEditor.deleteRuleModal.cancelButtonLabel": "キャンセル",
"xpack.ml.ruleEditor.deleteRuleModal.deleteButtonLabel": "削除",
"xpack.ml.ruleEditor.deleteRuleModal.deleteRuleDescription": "このルールを削除してよろしいですか?",
"xpack.ml.ruleEditor.deleteRuleModal.deleteRuleLinkText": "ルールを削除",
"xpack.ml.ruleEditor.deleteRuleModal.deleteRuleTitle": "ルールの削除",
"xpack.ml.ruleEditor.detectorDescriptionList.detectorTitle": "検知器",
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -11639,7 +11639,6 @@
"xpack.ml.jobsList.deleteJobModal.cancelButtonLabel": "取消",
"xpack.ml.jobsList.deleteJobModal.closeButtonLabel": "关闭",
"xpack.ml.jobsList.deleteJobModal.deleteButtonLabel": "删除",
"xpack.ml.jobsList.deleteJobModal.deleteJobsDescription": "是否确定要删除{jobsCount, plural, one {此作业} other {这些作业}}?",
"xpack.ml.jobsList.deleteJobModal.deleteJobsTitle": "删除 {jobsCount, plural, one {{jobId}} other {# 个作业}}",
"xpack.ml.jobsList.deleteJobModal.deleteMultipleJobsDescription": "删除{jobsCount, plural, one {一个作业} other {多个作业}}会非常耗时。将在后台删除{jobsCount, plural, one {该作业} other {这些作业}},但删除的作业可能不会立即从作业列表中消失",
"xpack.ml.jobsList.deleteJobModal.deletingJobsStatusLabel": "正在删除作业",
Expand Down Expand Up @@ -12308,7 +12307,6 @@
"xpack.ml.ruleEditor.deleteJobRule.ruleNoLongerExistsErrorMessage": "作业 {jobId} 中不再存在检测工具索引 {detectorIndex} 的规则",
"xpack.ml.ruleEditor.deleteRuleModal.cancelButtonLabel": "取消",
"xpack.ml.ruleEditor.deleteRuleModal.deleteButtonLabel": "删除",
"xpack.ml.ruleEditor.deleteRuleModal.deleteRuleDescription": "是否确定要删除此规则?",
"xpack.ml.ruleEditor.deleteRuleModal.deleteRuleLinkText": "删除规则",
"xpack.ml.ruleEditor.deleteRuleModal.deleteRuleTitle": "删除规则",
"xpack.ml.ruleEditor.detectorDescriptionList.detectorTitle": "检测工具",
Expand Down

0 comments on commit 62aef0f

Please sign in to comment.