From 1d7c7fd8affd8fb7f7090c8cc3c478953782e31f Mon Sep 17 00:00:00 2001 From: UlricQin Date: Sun, 18 Jul 2021 09:04:01 +0800 Subject: [PATCH] add i18n configuration --- config/i18n.go | 1 + http/router_classpath.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/i18n.go b/config/i18n.go index e46dc851..291044d3 100644 --- a/config/i18n.go +++ b/config/i18n.go @@ -57,6 +57,7 @@ var ( "Regexp[%s] matching failed": "正则表达式[%s]匹配失败", "Regexp[%s] matched, but cannot get substring()": "主正则[%s]匹配成功,但无法匹配到子串", "TagKey or TagValue contains illegal characters[:,/=\r\n\t]": "标签KEY或者标签值包含非法字符串[:,/=\r\n\t]", + "Resource cannot delete in preset classpath": "预置分组不能删除资源", } langDict = map[string]map[string]string{ "zh": dict, diff --git a/http/router_classpath.go b/http/router_classpath.go index eca8efc3..76c8d45f 100644 --- a/http/router_classpath.go +++ b/http/router_classpath.go @@ -109,7 +109,7 @@ func classpathDelResources(c *gin.Context) { me := loginUser(c).MustPerm("classpath_del_resource") if classpathId == 1 { - bomb(200, "Resource cannot delete in preset classpath") + bomb(200, _s("Resource cannot delete in preset classpath")) } cp := Classpath(classpathId)