aboutsummaryrefslogtreecommitdiffstats
path: root/modules/translation/translation.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-03-04 09:02:51 +0800
committerGitHub <noreply@github.com>2024-03-04 01:02:51 +0000
commit8553b4600e3035b6f6ad6907c37cebd013fa4d64 (patch)
tree110ec9003d7966549d427a52af15ba1b02f3324a /modules/translation/translation.go
parent77e29e0c39392f142627303bd798fb55258072b2 (diff)
downloadgitea-8553b4600e3035b6f6ad6907c37cebd013fa4d64.tar.gz
gitea-8553b4600e3035b6f6ad6907c37cebd013fa4d64.zip
Add an trailing slash to dashboard links (#29555)
Fix #29533, and add some tests for "base/paginate.tmpl"
Diffstat (limited to 'modules/translation/translation.go')
-rw-r--r--modules/translation/translation.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/translation/translation.go b/modules/translation/translation.go
index b7c18f610a..36ae58a9f1 100644
--- a/modules/translation/translation.go
+++ b/modules/translation/translation.go
@@ -144,7 +144,7 @@ func Match(tags ...language.Tag) language.Tag {
// locale represents the information of localization.
type locale struct {
i18n.Locale
- Lang, LangName string // these fields are used directly in templates: .i18n.Lang
+ Lang, LangName string // these fields are used directly in templates: ctx.Locale.Lang
msgPrinter *message.Printer
}