Remove duplicated i18n words

This commit is contained in:
Gucheng Wang
2023-01-06 20:12:32 +08:00
parent 6fb3e2cd7f
commit a6e9084973
20 changed files with 106 additions and 258 deletions

View File

@ -47,7 +47,7 @@ func (c *ApiController) BatchEnforce() {
func (c *ApiController) GetAllObjects() {
userId := c.GetSessionUsername()
if userId == "" {
c.ResponseError(c.T("enforcer:Please sign in first"))
c.ResponseError(c.T("general:Please login first"))
return
}
@ -58,7 +58,7 @@ func (c *ApiController) GetAllObjects() {
func (c *ApiController) GetAllActions() {
userId := c.GetSessionUsername()
if userId == "" {
c.ResponseError(c.T("enforcer:Please sign in first"))
c.ResponseError(c.T("general:Please login first"))
return
}
@ -69,7 +69,7 @@ func (c *ApiController) GetAllActions() {
func (c *ApiController) GetAllRoles() {
userId := c.GetSessionUsername()
if userId == "" {
c.ResponseError(c.T("enforcer:Please sign in first"))
c.ResponseError(c.T("general:Please login first"))
return
}