fix(任务中心): 国际化修改
--bug=1008937 --user=王孝刚 【国际化】-任务中心-未翻译问题汇总 https://www.tapd.cn/55049933/s/1082364
This commit is contained in:
parent
cac0150c9d
commit
b18cec18e1
|
@ -1202,7 +1202,7 @@ public class MockConfigService {
|
||||||
|
|
||||||
if (!isMatch) {
|
if (!isMatch) {
|
||||||
response.setStatus(404);
|
response.setStatus(404);
|
||||||
returnStr = "未找到匹配的Mock期望!";
|
returnStr = Translator.get("mock_warning");
|
||||||
}
|
}
|
||||||
return returnStr;
|
return returnStr;
|
||||||
}
|
}
|
||||||
|
@ -1244,7 +1244,7 @@ public class MockConfigService {
|
||||||
|
|
||||||
if (!isMatch) {
|
if (!isMatch) {
|
||||||
response.setStatus(404);
|
response.setStatus(404);
|
||||||
returnStr = "未找到匹配的Mock期望!";
|
returnStr = Translator.get("mock_warning");
|
||||||
}
|
}
|
||||||
return returnStr;
|
return returnStr;
|
||||||
}
|
}
|
||||||
|
|
|
@ -281,5 +281,6 @@ performance_case=PERFORMANCE
|
||||||
scenario_case=SCENARIO
|
scenario_case=SCENARIO
|
||||||
create_user=Create user
|
create_user=Create user
|
||||||
test_case_status=Case status
|
test_case_status=Case status
|
||||||
|
|
||||||
id_not_rightful=ID is not rightful
|
id_not_rightful=ID is not rightful
|
||||||
|
# mock
|
||||||
|
mock_warning=No matching Mock expectation was found
|
||||||
|
|
|
@ -281,3 +281,5 @@ test_case_status_saved=已保存
|
||||||
create_user=创建人
|
create_user=创建人
|
||||||
test_case_status=用例状态
|
test_case_status=用例状态
|
||||||
id_not_rightful=ID 不合法
|
id_not_rightful=ID 不合法
|
||||||
|
# mock
|
||||||
|
mock_warning=未找到匹配的Mock期望
|
||||||
|
|
|
@ -282,3 +282,5 @@ test_case_status_saved=已保存
|
||||||
create_user=創建人
|
create_user=創建人
|
||||||
test_case_status=用例狀態
|
test_case_status=用例狀態
|
||||||
id_not_rightful=ID 不合法
|
id_not_rightful=ID 不合法
|
||||||
|
# mock
|
||||||
|
mock_warning=未找到匹配的Mock期望
|
||||||
|
|
|
@ -166,7 +166,7 @@ export default {
|
||||||
handleView(report) {
|
handleView(report) {
|
||||||
this.reportId = report.id;
|
this.reportId = report.id;
|
||||||
if (report.status === 'Running') {
|
if (report.status === 'Running') {
|
||||||
this.$warning("正在运行中,请稍后查看")
|
this.$warning(this.$t('commons.run_warning'))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.currentProjectId = report.projectId;
|
this.currentProjectId = report.projectId;
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
:size="size.toString()"
|
:size="size.toString()"
|
||||||
custom-class="ms-drawer-task">
|
custom-class="ms-drawer-task">
|
||||||
<el-card style="float: left;width: 850px" v-if="size > 550 ">
|
<el-card style="float: left;width: 850px" v-if="size > 550 ">
|
||||||
<div class="ms-task-opt-btn" @click="packUp">收起</div>
|
<div class="ms-task-opt-btn" @click="packUp">{{ this.$t('') }}</div>
|
||||||
<!-- 接口用例结果 -->
|
<!-- 接口用例结果 -->
|
||||||
<ms-request-result-tail :response="response" ref="debugResult" v-if="reportType === 'API'"/>
|
<ms-request-result-tail :response="response" ref="debugResult" v-if="reportType === 'API'"/>
|
||||||
|
|
||||||
|
@ -349,9 +349,9 @@ export default {
|
||||||
this.getExecResult(row.id);
|
this.getExecResult(row.id);
|
||||||
}
|
}
|
||||||
} else if (status === 'stop') {
|
} else if (status === 'stop') {
|
||||||
this.$warning("当前任务已停止,无法查看报告");
|
this.$warning(this.$t('commons.run_stop'));
|
||||||
} else {
|
} else {
|
||||||
this.$warning("正在运行中,请稍后查看");
|
this.$warning(this.$t('commons.run_warning'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -188,6 +188,7 @@ export default {
|
||||||
api_case: "Api Case",
|
api_case: "Api Case",
|
||||||
scenario_case: "Scenario Case",
|
scenario_case: "Scenario Case",
|
||||||
task_center: "Task center",
|
task_center: "Task center",
|
||||||
|
task_close: "Put away",
|
||||||
notice_center: "Notice center",
|
notice_center: "Notice center",
|
||||||
notice_count: 'Messages',
|
notice_count: 'Messages',
|
||||||
notice_tips: 'Only display the news within the last 3 months',
|
notice_tips: 'Only display the news within the last 3 months',
|
||||||
|
@ -205,7 +206,9 @@ export default {
|
||||||
run_success: "Run Success",
|
run_success: "Run Success",
|
||||||
run_completed: "Run Completed",
|
run_completed: "Run Completed",
|
||||||
run_fail: "Run Fail",
|
run_fail: "Run Fail",
|
||||||
follow_success:"Follow Success",
|
run_warning: "Is running, please check later",
|
||||||
|
run_stop: "當前任務已停止,無法查看報告",
|
||||||
|
follow_success: "Follow Success",
|
||||||
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",
|
||||||
|
|
|
@ -189,6 +189,7 @@ export default {
|
||||||
api_case: "接口用例",
|
api_case: "接口用例",
|
||||||
scenario_case: "场景用例",
|
scenario_case: "场景用例",
|
||||||
task_center: "任务中心",
|
task_center: "任务中心",
|
||||||
|
task_close: "收起",
|
||||||
notice_center: "消息中心",
|
notice_center: "消息中心",
|
||||||
notice_count: '条消息',
|
notice_count: '条消息',
|
||||||
notice_tips: '仅显示最近3个月的站内消息',
|
notice_tips: '仅显示最近3个月的站内消息',
|
||||||
|
@ -205,6 +206,8 @@ export default {
|
||||||
environment: "运行环境",
|
environment: "运行环境",
|
||||||
run_success: "执行成功",
|
run_success: "执行成功",
|
||||||
run_completed: "执行完成",
|
run_completed: "执行完成",
|
||||||
|
run_warning: "正在运行中,请稍后查看",
|
||||||
|
run_stop: "The current task has been stopped and the report cannot be viewed",
|
||||||
run_fail: "执行失败",
|
run_fail: "执行失败",
|
||||||
follow_success: "关注成功",
|
follow_success: "关注成功",
|
||||||
cancel_follow_success: "取消关注成功",
|
cancel_follow_success: "取消关注成功",
|
||||||
|
|
|
@ -189,6 +189,7 @@ export default {
|
||||||
api_case: "接口用例",
|
api_case: "接口用例",
|
||||||
scenario_case: "場景用例",
|
scenario_case: "場景用例",
|
||||||
task_center: "任務中心",
|
task_center: "任務中心",
|
||||||
|
task_close: "收起",
|
||||||
notice_center: "消息中心",
|
notice_center: "消息中心",
|
||||||
notice_count: '條消息',
|
notice_count: '條消息',
|
||||||
notice_tips: '僅顯示最近3個月的站內消息',
|
notice_tips: '僅顯示最近3個月的站內消息',
|
||||||
|
@ -205,9 +206,11 @@ export default {
|
||||||
environment: "運行環境",
|
environment: "運行環境",
|
||||||
run_success: "執行成功",
|
run_success: "執行成功",
|
||||||
run_completed: "執行完成",
|
run_completed: "執行完成",
|
||||||
|
run_warning: "正在運行中,請稍後查看",
|
||||||
|
run_stop: "當前任務已停止,無法查看報告",
|
||||||
run_fail: "執行失敗",
|
run_fail: "執行失敗",
|
||||||
follow_success:"關註成功",
|
follow_success: "關註成功",
|
||||||
cancel_follow_success:"取消關註成功",
|
cancel_follow_success: "取消關註成功",
|
||||||
type: "類型",
|
type: "類型",
|
||||||
relationship: {
|
relationship: {
|
||||||
name: '依賴關系',
|
name: '依賴關系',
|
||||||
|
|
Loading…
Reference in New Issue