From 6bf54034ed2c73a6d660e5cd56e1c32dd24b9ff2 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Mon, 20 Dec 2021 15:52:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20i1?= =?UTF-8?q?8n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1008911 --user=lyh 【国际化】测试跟踪 模块,未进行国际化的问题汇总 https://www.tapd.cn/55049933/s/1083409 --- .../components/common/head/HeaderCustom.vue | 1 + .../track/case/components/TestCaseCreate.vue | 4 +-- .../track/plan/components/TestPlanEdit.vue | 10 ++++---- .../review/components/TestCaseReviewEdit.vue | 2 +- frontend/src/i18n/en-US.js | 25 +++++++++++-------- frontend/src/i18n/zh-CN.js | 5 ++++ frontend/src/i18n/zh-TW.js | 5 ++++ 7 files changed, 34 insertions(+), 18 deletions(-) diff --git a/frontend/src/business/components/common/head/HeaderCustom.vue b/frontend/src/business/components/common/head/HeaderCustom.vue index bd8f9ad28a..63bdce4a92 100644 --- a/frontend/src/business/components/common/head/HeaderCustom.vue +++ b/frontend/src/business/components/common/head/HeaderCustom.vue @@ -5,6 +5,7 @@ :draggable="true" :to_data='fieldSelected' :defaultProps="{label:'label'}" + :placeholder="$t('api_test.request.parameters_mock_filter_tips')" :allow-drop="allowDrop" :default-checked-keys="defaultCheckedKeys" :default-transfer="defaultTransfer" diff --git a/frontend/src/business/components/track/case/components/TestCaseCreate.vue b/frontend/src/business/components/track/case/components/TestCaseCreate.vue index 2e1aa2090c..1f32d77a87 100644 --- a/frontend/src/business/components/track/case/components/TestCaseCreate.vue +++ b/frontend/src/business/components/track/case/components/TestCaseCreate.vue @@ -2,7 +2,7 @@ - @@ -47,7 +47,7 @@ diff --git a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue index f40d8c9203..9ca9f95b1b 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue @@ -81,20 +81,20 @@ - + - + diff --git a/frontend/src/business/components/track/review/components/TestCaseReviewEdit.vue b/frontend/src/business/components/track/review/components/TestCaseReviewEdit.vue index c49ba09dc5..b99321c634 100644 --- a/frontend/src/business/components/track/review/components/TestCaseReviewEdit.vue +++ b/frontend/src/business/components/track/review/components/TestCaseReviewEdit.vue @@ -146,7 +146,7 @@ export default { userIds: [{required: true, message: this.$t('test_track.review.input_reviewer'), trigger: 'change'}], stage: [{required: true, message: this.$t('test_track.plan.input_plan_stage'), trigger: 'change'}], description: [{max: 200, message: this.$t('test_track.length_less_than') + '200', trigger: 'blur'}], - endTime: [{required: true, message: '请选择截止时间', trigger: 'blur'}] + endTime: [{required: true, message: this.$t('commons.please_select_a_deadline'), trigger: 'blur'}] }, formLabelWidth: "100px", operationType: '', diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index 9aeac47234..890a5baeb2 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -219,6 +219,7 @@ export default { cancel_follow_success: "Cancel Follow Success", generate_test_data: "Generate test data", type: "Type", + please_select_a_deadline: "Please select a deadline", relationship: { name: 'Dependencies', pre_case: 'Prepositional Case', @@ -285,12 +286,12 @@ export default { not_like: "Not included", in: "Belong to", not_in: "Not belonging", - gt: ">", - ge: ">=", - lt: "<", - le: "<=", - equals: "=", - not_equals: "!=", + gt: "Greater than", + ge: "Greater than or equal to", + lt: "Less than", + le: "Less than or equal to", + equals: "Equal to", + not_equals: "Not Equal to", between: "Between", current_user: "Current user" } @@ -1808,7 +1809,7 @@ export default { execution_result: ": Please select the execution result", actual_result: ": The actual result is empty", cancel_relevance_success: "Unlinked successfully", - switch_project: "Switch project", + switch_project: "Project", functional_test_case: "Functional Case", api_test_case: "Api Case", performance_test_case: "Performance Case", @@ -1953,7 +1954,7 @@ export default { test_plan_id:'Plan ID', create_plan: "Create test plan", edit_plan: "Edit test plan", - plan_name: "Test plan name", + plan_name: "Name", plan_project: "Project", related_project: "Related Project", related_tip: "After linking the project, you can add test cases under the linking project to the test plan list", @@ -1977,8 +1978,8 @@ export default { plan_status_finished: "Finished", plan_status_completed: "Completed", plan_status_trash: "Trashed", - planned_start_time: "Plan Start Time", - planned_end_time: "Plan End Time", + planned_start_time: "Start Time", + planned_end_time: "End Time", actual_start_time: "Actual Start Time", actual_end_time: "Actual End Time", plan_delete_confirm: "All use cases under this plan will be deleted,confirm delete test plan: ", @@ -2146,6 +2147,10 @@ export default { failure_case: "Failure case", export_report: "Export Report", no_case_relevance: "No related use cases", + automatically_update_status: "Auto update status", + allow_associated_repetitive_cases: "Repetitive Case", + automatically_update_status_tip: "When the interface or performance use case associated with the functional use case is executed in the test plan, the status of the functional use case is automatically updated", + allow_associated_repetitive_cases_tip: "Whether to allow the same use case to be associated multiple times in the same test plan" }, issue: { issue: "Issue", diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index 59d1b819f2..5a1887c543 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -219,6 +219,7 @@ export default { follow_success: "关注成功", cancel_follow_success: "取消关注成功", type: "类型", + please_select_a_deadline: "请选择截止时间", relationship: { name: '依赖关系', pre_case: '前置用例', @@ -2151,6 +2152,10 @@ export default { failure_case: "失败用例", export_report: "导出报告", no_case_relevance: "没有关联用例", + automatically_update_status: "自动更新状态", + automatically_update_status_tip: "当功能用例关联的接口或性能用例在测试计划执行后,自动更新功能用例的状态", + allow_associated_repetitive_cases: "允许关联重复用例", + allow_associated_repetitive_cases_tip: "是否允许同一个测试计划中多次关联相同用例" }, issue: { issue: "缺陷", diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index 0b8a61bec9..664c001803 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -219,6 +219,7 @@ export default { follow_success: "關註成功", cancel_follow_success: "取消關註成功", type: "類型", + please_select_a_deadline: "請選擇截止時間", relationship: { name: '依賴關系', pre_case: '前置用例', @@ -2151,6 +2152,10 @@ export default { failure_case: "失敗用例", export_report: "導出報告", no_case_relevance: "沒有關聯用例", + automatically_update_status: "自動更新狀態", + allow_associated_repetitive_cases: "允許關聯重複用例", + automatically_update_status_tip: "當功能用例關聯的接口或性能用例在測試計劃執行後,自動更新功能用例的狀態", + allow_associated_repetitive_cases_tip: "是否允許同一個測試計劃中多次關聯相同用例" }, issue: { issue: "缺陷",