diff --git a/framework/sdk-parent/frontend/src/i18n/lang/track/en-US.js b/framework/sdk-parent/frontend/src/i18n/lang/track/en-US.js index b93f31875f..287f9e5555 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/track/en-US.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/track/en-US.js @@ -107,6 +107,8 @@ export default { batch_delete_confirm: "Confirm delete {0} case?", batch_delete_completely_confirm: "Confirm delete {0} case completely?", batch_delete_tip: "It cannot be recovered after delete, please delete carefully", + public_batch_delete_tip: "It cannot be restored after deletion, please proceed with caution.", + public_remove:"Remove", batch_delete_soft_tip: "The test case will be put into trash", save_create_continue: "Save and create continue", save_add_public: "Save and add public", diff --git a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js index 8702b6ebd6..35cee2d5a9 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js @@ -99,6 +99,8 @@ export default { batch_delete_confirm: "确定删除{0}项用例?", batch_delete_completely_confirm: "确定彻底删除{0}项用例?", batch_delete_tip: "删除后将无法恢复, 请谨慎操作。", + public_batch_delete_tip: "移除后将无法恢复, 请谨慎操作。", + public_remove:"移除", batch_delete_soft_tip: "删除的内容将进入回收站", delete: "删除用例", save_create_continue: "保存并继续创建", diff --git a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js index 0cd68e4dcd..0fba1e23d0 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js @@ -100,6 +100,8 @@ export default { batch_delete_confirm: "確定刪除{0}項用例?", batch_delete_completely_confirm: "確定徹底刪除{0}項用例", batch_delete_tip: "刪除後將無法恢復, 請謹慎操作。", + public_batch_delete_tip: "移除後將無法恢復, 請謹慎操作。", + public_remove:"移除", batch_delete_soft_tip: "刪除的內容將進入回收站", save_create_continue: "保存併繼續創建", save_add_public: "保存併添加到公共用例庫", diff --git a/test-track/frontend/src/business/case/components/public/PublicTestCaseList.vue b/test-track/frontend/src/business/case/components/public/PublicTestCaseList.vue index 1ced974f84..da1c2a684a 100644 --- a/test-track/frontend/src/business/case/components/public/PublicTestCaseList.vue +++ b/test-track/frontend/src/business/case/components/public/PublicTestCaseList.vue @@ -301,7 +301,7 @@ export default { permissions: ['PROJECT_TRACK_CASE:READ+BATCH_COPY'] }, { - name: this.$t('test_track.case.batch_delete_btn'), + name: this.$t('test_track.case.public_remove'), handleClick: this.handleDeleteBatchToPublic, permissions: ['PROJECT_TRACK_CASE:READ+BATCH_DELETE'], isDelete: true @@ -330,7 +330,7 @@ export default { permissions: ['PROJECT_TRACK_CASE:READ+COPY'] }, { - tip: this.$t('commons.delete'), icon: "el-icon-delete", + tip: this.$t('test_track.case.public_remove'), icon: "el-icon-delete", exec: this.handleDeleteToGc, permissions: ['PROJECT_TRACK_CASE:READ+DELETE'], isDisable: !this.isOwner, @@ -480,9 +480,9 @@ export default { this.$refs.apiDeleteConfirm.open(testCase, this.$t('test_track.case.delete_confirm')); } else { let title = this.$t('case.public.remove') + ": " + testCase.name + "?"; - this.$confirm(title, '', { + this.$confirm(this.$t('test_track.case.public_batch_delete_tip'), title, { cancelButtonText: this.$t("commons.cancel"), - confirmButtonText: this.$t("commons.delete"), + confirmButtonText: this.$t("test_track.case.public_remove"), customClass: 'custom-confirm-delete', callback: action => { if (action === "confirm") { @@ -560,7 +560,7 @@ export default { let title = this.$t('case.public.batch_remove_confirm', [this.$refs.table.selectIds.length]); this.$confirm(title, '', { cancelButtonText: this.$t("commons.cancel"), - confirmButtonText: this.$t("commons.delete"), + confirmButtonText: this.$t("test_track.case.public_remove"), customClass: 'custom-confirm-delete', callback: action => { if (action === "confirm") {