Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

i18n

aichy1263cdd75983f81
diff --git a/internal/controller/template_controller.go b/internal/controller/template_controller.go
index 89a00ff7..61cffcae 100644
--- a/internal/controller/template_controller.go
+++ b/internal/controller/template_controller.go
@@ -321,13 +321,13 @@ func (tc *TemplateController) html(ctx *gin.Context, code int, tpl string, siteI
data["siteinfo"] = siteInfo
data["scriptPath"] = tc.scriptPath
data["cssPath"] = tc.cssPath
- data["language"] = i18n.LanguageChinese //handler.GetLang(ctx)
data["keywords"] = siteInfo.Keywords
if siteInfo.Description == "" {
siteInfo.Description = siteInfo.General.Description
}
data["description"] = siteInfo.Description
- data["language"] = handler.GetLang(ctx)
+ // data["language"] = handler.GetLang(ctx)
+ data["language"] = i18n.LanguageChinese //handler.GetLang(ctx)
data["timezone"] = siteInfo.Interface.TimeZone
ctx.HTML(code, tpl, data)