fix(测试跟踪): i18n

--bug=1008911 --user=lyh 【国际化】测试跟踪 模块,未进行国际化的问题汇总
https://www.tapd.cn/55049933/s/1083409
This commit is contained in:
shiziyuan9527 2021-12-20 15:52:15 +08:00 committed by 刘瑞斌
parent b2f307ce4a
commit 6bf54034ed
7 changed files with 34 additions and 18 deletions

View File

@ -5,6 +5,7 @@
:draggable="true" :draggable="true"
:to_data='fieldSelected' :to_data='fieldSelected'
:defaultProps="{label:'label'}" :defaultProps="{label:'label'}"
:placeholder="$t('api_test.request.parameters_mock_filter_tips')"
:allow-drop="allowDrop" :allow-drop="allowDrop"
:default-checked-keys="defaultCheckedKeys" :default-checked-keys="defaultCheckedKeys"
:default-transfer="defaultTransfer" :default-transfer="defaultTransfer"

View File

@ -2,7 +2,7 @@
<el-dialog :close-on-click-modal="false" :title="$t('test_track.case.create')" :visible.sync="visible" <el-dialog :close-on-click-modal="false" :title="$t('test_track.case.create')" :visible.sync="visible"
width="45%" width="45%"
:destroy-on-close="true"> :destroy-on-close="true">
<el-form :model="testCaseForm" label-position="right" label-width="80px" size="small" :rules="rule" <el-form :model="testCaseForm" label-position="right" label-width="100px" size="small" :rules="rule"
ref="testCaseForm"> ref="testCaseForm">
<el-form-item :label="$t('commons.name')" prop="name"> <el-form-item :label="$t('commons.name')" prop="name">
<el-input v-model="testCaseForm.name" autocomplete="off" :placeholder="$t('commons.name')"/> <el-input v-model="testCaseForm.name" autocomplete="off" :placeholder="$t('commons.name')"/>
@ -47,7 +47,7 @@
<ms-dialog-footer <ms-dialog-footer
@cancel="visible = false" @cancel="visible = false"
:isShow="true" :isShow="true"
title="编辑详情" :title="$t('commons.edit_info')"
@saveAsEdit="saveTestCase(true)" @saveAsEdit="saveTestCase(true)"
@confirm="saveTestCase"> @confirm="saveTestCase">
</ms-dialog-footer> </ms-dialog-footer>

View File

@ -81,20 +81,20 @@
<el-row type="flex" :gutter="20"> <el-row type="flex" :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item <el-form-item
:label="$t('自动更新状态')" :label="$t('test_track.plan_view.automatically_update_status')"
:label-width="formLabelWidth" label-width="140px"
prop="automaticStatusUpdate"> prop="automaticStatusUpdate">
<el-switch v-model="form.automaticStatusUpdate"/> <el-switch v-model="form.automaticStatusUpdate"/>
<ms-instructions-icon :content="'当功能用例关联的接口或性能用例在测试计划执行后,自动更新功能用例的状态'"/> <ms-instructions-icon :content="$t('test_track.plan_view.automatically_update_status_tip')"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item <el-form-item
:label="$t('允许关联重复用例')" :label="$t('test_track.plan_view.allow_associated_repetitive_cases')"
label-width="140px" label-width="140px"
prop="automaticStatusUpdate"> prop="automaticStatusUpdate">
<el-switch v-model="form.repeatCase"/> <el-switch v-model="form.repeatCase"/>
<ms-instructions-icon :content="'是否允许同一个测试计划中多次关联相同用例'"/> <ms-instructions-icon :content="$t('test_track.plan_view.allow_associated_repetitive_cases_tip')"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

View File

@ -146,7 +146,7 @@ export default {
userIds: [{required: true, message: this.$t('test_track.review.input_reviewer'), trigger: 'change'}], 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'}], 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'}], 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", formLabelWidth: "100px",
operationType: '', operationType: '',

View File

@ -219,6 +219,7 @@ export default {
cancel_follow_success: "Cancel Follow Success", cancel_follow_success: "Cancel Follow Success",
generate_test_data: "Generate test data", generate_test_data: "Generate test data",
type: "Type", type: "Type",
please_select_a_deadline: "Please select a deadline",
relationship: { relationship: {
name: 'Dependencies', name: 'Dependencies',
pre_case: 'Prepositional Case', pre_case: 'Prepositional Case',
@ -285,12 +286,12 @@ export default {
not_like: "Not included", not_like: "Not included",
in: "Belong to", in: "Belong to",
not_in: "Not belonging", not_in: "Not belonging",
gt: ">", gt: "Greater than",
ge: ">=", ge: "Greater than or equal to",
lt: "<", lt: "Less than",
le: "<=", le: "Less than or equal to",
equals: "=", equals: "Equal to",
not_equals: "!=", not_equals: "Not Equal to",
between: "Between", between: "Between",
current_user: "Current user" current_user: "Current user"
} }
@ -1808,7 +1809,7 @@ export default {
execution_result: ": Please select the execution result", execution_result: ": Please select the execution result",
actual_result: ": The actual result is empty", actual_result: ": The actual result is empty",
cancel_relevance_success: "Unlinked successfully", cancel_relevance_success: "Unlinked successfully",
switch_project: "Switch project", switch_project: "Project",
functional_test_case: "Functional Case", functional_test_case: "Functional Case",
api_test_case: "Api Case", api_test_case: "Api Case",
performance_test_case: "Performance Case", performance_test_case: "Performance Case",
@ -1953,7 +1954,7 @@ export default {
test_plan_id:'Plan ID', test_plan_id:'Plan ID',
create_plan: "Create test plan", create_plan: "Create test plan",
edit_plan: "Edit test plan", edit_plan: "Edit test plan",
plan_name: "Test plan name", plan_name: "Name",
plan_project: "Project", plan_project: "Project",
related_project: "Related 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", 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_finished: "Finished",
plan_status_completed: "Completed", plan_status_completed: "Completed",
plan_status_trash: "Trashed", plan_status_trash: "Trashed",
planned_start_time: "Plan Start Time", planned_start_time: "Start Time",
planned_end_time: "Plan End Time", planned_end_time: "End Time",
actual_start_time: "Actual Start Time", actual_start_time: "Actual Start Time",
actual_end_time: "Actual End Time", actual_end_time: "Actual End Time",
plan_delete_confirm: "All use cases under this plan will be deleted,confirm delete test plan: ", 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", failure_case: "Failure case",
export_report: "Export Report", export_report: "Export Report",
no_case_relevance: "No related use cases", 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: "Issue", issue: "Issue",

View File

@ -219,6 +219,7 @@ export default {
follow_success: "关注成功", follow_success: "关注成功",
cancel_follow_success: "取消关注成功", cancel_follow_success: "取消关注成功",
type: "类型", type: "类型",
please_select_a_deadline: "请选择截止时间",
relationship: { relationship: {
name: '依赖关系', name: '依赖关系',
pre_case: '前置用例', pre_case: '前置用例',
@ -2151,6 +2152,10 @@ export default {
failure_case: "失败用例", failure_case: "失败用例",
export_report: "导出报告", export_report: "导出报告",
no_case_relevance: "没有关联用例", no_case_relevance: "没有关联用例",
automatically_update_status: "自动更新状态",
automatically_update_status_tip: "当功能用例关联的接口或性能用例在测试计划执行后,自动更新功能用例的状态",
allow_associated_repetitive_cases: "允许关联重复用例",
allow_associated_repetitive_cases_tip: "是否允许同一个测试计划中多次关联相同用例"
}, },
issue: { issue: {
issue: "缺陷", issue: "缺陷",

View File

@ -219,6 +219,7 @@ export default {
follow_success: "關註成功", follow_success: "關註成功",
cancel_follow_success: "取消關註成功", cancel_follow_success: "取消關註成功",
type: "類型", type: "類型",
please_select_a_deadline: "請選擇截止時間",
relationship: { relationship: {
name: '依賴關系', name: '依賴關系',
pre_case: '前置用例', pre_case: '前置用例',
@ -2151,6 +2152,10 @@ export default {
failure_case: "失敗用例", failure_case: "失敗用例",
export_report: "導出報告", export_report: "導出報告",
no_case_relevance: "沒有關聯用例", no_case_relevance: "沒有關聯用例",
automatically_update_status: "自動更新狀態",
allow_associated_repetitive_cases: "允許關聯重複用例",
automatically_update_status_tip: "當功能用例關聯的接口或性能用例在測試計劃執行後,自動更新功能用例的狀態",
allow_associated_repetitive_cases_tip: "是否允許同一個測試計劃中多次關聯相同用例"
}, },
issue: { issue: {
issue: "缺陷", issue: "缺陷",