fix: 国际化

This commit is contained in:
chenjianxing 2021-05-27 16:05:11 +08:00 committed by jianxing
parent cd11ce2e41
commit 040d297465
7 changed files with 20 additions and 10 deletions

View File

@ -566,7 +566,9 @@ public class TestCaseReviewService {
stringBuilder.append(userMap.get(id)).append("");
}
}
name = stringBuilder.substring(0, stringBuilder.length() - 1);
if (StringUtils.isNotBlank(stringBuilder)) {
name = stringBuilder.substring(0, stringBuilder.length() - 1);
}
}
return name;
}

View File

@ -717,7 +717,9 @@ public class TestPlanService {
for (Project project : projects) {
stringBuilder.append(project.getName()).append("");
}
projectName = stringBuilder.substring(0, stringBuilder.length() - 1);
if (StringUtils.isNotBlank(stringBuilder)) {
projectName = stringBuilder.substring(0, stringBuilder.length() - 1);
}
}
return projectName;

View File

@ -257,7 +257,7 @@ export default {
},
exportTestCase() {
if (this.activeDom !== 'left') {
this.$warning('请切换成接口列表导出!');
this.$warning(this.$t('test_track.case.export.export_tip'));
return;
}
this.$refs.testCaseList.exportTestCase();

View File

@ -23,7 +23,7 @@
</el-menu-item>
<el-menu-item :index="'/track/issue'" popper-class="submenu">
{{ $t("缺陷管理") }}
{{ $t('test_track.issue.issue_management') }}
</el-menu-item>
<el-menu-item :index="'/track/testPlan/reportList'" popper-class="submenu">

View File

@ -1085,7 +1085,7 @@ export default {
swagger_url_import: "Import using URL",
timing_synchronization: "Timing synchronization",
next_synchronization_time: "Next synchronization time",
ms_env_import_file_limit: "It supports JSON format files exported through metersphere",
ms_env_import_file_limit: "It only supports JSON format files exported through metersphere",
file_exceed_limit: "The number of files exceeds the limit",
},
home_page: {
@ -1371,7 +1371,8 @@ export default {
continue_upload: "Upload continue",
},
export: {
export: "Export cases"
export: "Export cases",
export_tip: "Switch to Interface List and check Use Case Export"
}
},
plan: {
@ -1544,6 +1545,7 @@ export default {
},
issue: {
issue: "Issue",
issue_management: "Issue Management",
issue_resource: "Issue source",
create_issue: "Create Issue",
add_issue: "Add Issue",

View File

@ -1087,7 +1087,7 @@ export default {
swagger_url_import: "使用URL导入",
timing_synchronization: "定时同步",
next_synchronization_time: "下次同步时间",
ms_env_import_file_limit: "支持通过MeterSphere导出的json格式文件",
ms_env_import_file_limit: "支持通过MeterSphere导出的json格式文件",
file_exceed_limit: "文件数量超出限制",
@ -1375,7 +1375,8 @@ export default {
continue_upload: "继续上传",
},
export: {
export: "导出用例"
export: "导出用例",
export_tip: "请切换成接口列表勾选用例导出!"
}
},
plan: {
@ -1549,6 +1550,7 @@ export default {
},
issue: {
issue: "缺陷",
issue_management: "缺陷管理",
issue_resource: "缺陷来源",
create_issue: "创建缺陷",
add_issue: "添加缺陷",

View File

@ -1087,7 +1087,7 @@ export default {
swagger_url_import: "使用URL導入",
timing_synchronization: "定時同步",
next_synchronization_time: "下次同步時間",
ms_env_import_file_limit: "支持通過MeterSphere導出的json格式文件",
ms_env_import_file_limit: "支持通過MeterSphere導出的json格式文件",
file_exceed_limit: "文件數量超出限制",
@ -1375,7 +1375,8 @@ export default {
continue_upload: "繼續上傳",
},
export: {
export: "導出用例"
export: "導出用例",
export_tip: "請切換成接口列表勾選用例導出!"
}
},
plan: {
@ -1549,6 +1550,7 @@ export default {
},
issue: {
issue: "缺陷",
issue_management: "缺陷管理",
issue_resource: "缺陷來源",
create_issue: "創建缺陷",
add_issue: "添加缺陷",