diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 2eca76373..cdfedc862 100755 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -3077,3 +3077,5 @@ TRAIN = TRAIN INFERENCE = INFERENCE BENCHMARK = BENCHMARK brain_area = Brain Area + +error.dataset_select = dataset select error:the count exceed the limit or has same name \ No newline at end of file diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 78d80a6bc..de15dd98f 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -3094,3 +3094,4 @@ INFERENCE = 推理任务 BENCHMARK = 评测任务 brain_area = 脑区 +error.dataset_select = 数据集选择错误:数量超过限制或者有同名数据集 \ No newline at end of file diff --git a/routers/repo/cloudbrain.go b/routers/repo/cloudbrain.go index a62d25abc..7a67d898c 100755 --- a/routers/repo/cloudbrain.go +++ b/routers/repo/cloudbrain.go @@ -265,7 +265,7 @@ func CloudBrainCreate(ctx *context.Context, form auth.CreateCloudBrainForm) { if err != nil { log.Error("GetDatasetInfo failed: %v", err, ctx.Data["MsgID"]) cloudBrainNewDataPrepare(ctx) - ctx.RenderWithErr("GetDatasetInfo failed", tpl, &form) + ctx.RenderWithErr(ctx.Tr("repo.cloudbrain.error.dataset_select"), tpl, &form) return }