国际化
This commit is contained in:
parent
e0a0bbffef
commit
3981cc8741
|
@ -5,6 +5,7 @@ import io.metersphere.base.domain.TestCaseReportTemplateExample;
|
|||
import io.metersphere.base.mapper.TestCaseReportTemplateMapper;
|
||||
import io.metersphere.commons.exception.MSException;
|
||||
import io.metersphere.commons.utils.SessionUtils;
|
||||
import io.metersphere.i18n.Translator;
|
||||
import io.metersphere.track.request.testCaseReport.QueryTemplateRequest;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
@ -61,7 +62,7 @@ public class TestCaseReportTemplateService {
|
|||
.andWorkspaceIdEqualTo(SessionUtils.getCurrentWorkspaceId())
|
||||
.andIdNotEqualTo(testCaseReportTemplate.getId());
|
||||
if (testCaseReportTemplateMapper.selectByExample(example).size() > 0) {
|
||||
MSException.throwException("同一工作空间下不能存在同名模版");
|
||||
MSException.throwException(Translator.get("test_case_report_template_repeat"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -41,4 +41,5 @@ remark_optional=
|
|||
do_not_modify_header_order=
|
||||
module_created_automatically=
|
||||
options=
|
||||
please_input_workspace_member=
|
||||
please_input_workspace_member=
|
||||
test_case_report_template_repeat=
|
|
@ -82,4 +82,5 @@ remark_optional=Remark optional
|
|||
do_not_modify_header_order=Do not modify the header order
|
||||
module_created_automatically=If there is no such module, will be created automatically
|
||||
options=options
|
||||
please_input_workspace_member=Please input workspace merber
|
||||
please_input_workspace_member=Please input workspace merber
|
||||
test_case_report_template_repeat=The workspace has the same name template
|
|
@ -83,3 +83,4 @@ do_not_modify_header_order=请勿修改表头顺序
|
|||
module_created_automatically=若无该模块将自动创建
|
||||
options=选项
|
||||
please_input_workspace_member=请填写该工作空间相关人员
|
||||
test_case_report_template_repeat=同一工作空间下不能存在同名模版
|
||||
|
|
|
@ -82,4 +82,5 @@ remark_optional=備註選填
|
|||
do_not_modify_header_order=請勿修改表頭順序
|
||||
module_created_automatically=若無該模塊將自動創建
|
||||
options=選項
|
||||
please_input_workspace_member=請填寫該工作空間相關人員
|
||||
please_input_workspace_member=請填寫該工作空間相關人員
|
||||
test_case_report_template_repeat=同壹工作空間下不能存在同名模版
|
|
@ -51,7 +51,7 @@
|
|||
type: Object,
|
||||
default() {
|
||||
return {
|
||||
projectName: this.$t('test_track.project.name'),
|
||||
projectName: this.$t('test_track.project'),
|
||||
principal: 'Michael',
|
||||
executors: ['Michael','Tom','Jiessie'],
|
||||
startTime: '2020-6-18',
|
||||
|
|
Loading…
Reference in New Issue