rename to frps-panel

add i18n for some words
This commit is contained in:
杨黄林
2023-09-10 01:24:52 +08:00
parent 56be865d3e
commit 60d8cfcf70
15 changed files with 92 additions and 86 deletions

View File

@@ -176,8 +176,7 @@ func (c *HandleController) MakeHandlerFunc() gin.HandlerFunc {
func (c *HandleController) MakeManagerFunc() func(context *gin.Context) {
return func(context *gin.Context) {
context.HTML(http.StatusOK, "index.html", gin.H{
"UserManage": ginI18n.MustGetMessage(context, "User Manage"),
"FrpsMultiuser": ginI18n.MustGetMessage(context, "frps multiuser"),
"FrpsPanel": ginI18n.MustGetMessage(context, "Frps Panel"),
"User": ginI18n.MustGetMessage(context, "User"),
"Token": ginI18n.MustGetMessage(context, "Token"),
"Notes": ginI18n.MustGetMessage(context, "Notes"),
@@ -201,6 +200,9 @@ func (c *HandleController) MakeManagerFunc() func(context *gin.Context) {
"PleaseInputAllowedSubdomains": ginI18n.MustGetMessage(context, "Please input allowed subdomains"),
"NotLimit": ginI18n.MustGetMessage(context, "Not limit"),
"None": ginI18n.MustGetMessage(context, "None"),
"ServerInfo": ginI18n.MustGetMessage(context, "Server Info"),
"Users": ginI18n.MustGetMessage(context, "Users"),
"Proxies": ginI18n.MustGetMessage(context, "Proxies"),
})
}
}