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)