add: 历史记录模块实现国际化

This commit is contained in:
yanps
2023-11-29 19:09:22 +08:00
parent 4d2408de3b
commit 137544f067
15 changed files with 188 additions and 106 deletions

View File

@@ -752,7 +752,8 @@ public class TaskServiceImpl extends CommonServiceImpl<TaskMapper, Task> impleme
JSONArray array = json.getJSONArray("data");
if (array.size() == 0) {
throw new RuntimeException("请选择起点");
throw new BadRequestException( LangProcess.msg("starting_point_isNull"));
//throw new RuntimeException("请选择起点");
}
for (int i = 0; i < array.size(); i++) {
JSONObject arrjo = array.getJSONObject(i);

View File

@@ -2,3 +2,4 @@ task_checkExist={0}任务已存在
task_insHas=指令已存在
task_insRun=有指令未完成
task_isNull={0}查询信息不存在
starting_point_isNull=请选择起点

View File

@@ -2,3 +2,4 @@ task_checkExist=Task {0} already exists
task_insHas=Instruction already exists
task_insRun=There are instructions that are not completed
task_isNull={0}query is null
starting_point_isNull = Please select starting point

View File

@@ -2,3 +2,4 @@ task_checkExist=Tugas {0} sudah ada
task_insHas=Instruksi sudah ada
task_insRun=Ada instruksi yang belum selesai
task_isNull={0}Pertanyaan Tidak ada
starting_point_isNull = Silakan pilih titik awal