diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-03-04 13:50:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-04 13:50:55 +0800 |
commit | 4ef7e496b878911fd82f9036bde886ca725c4449 (patch) | |
tree | 8f446d086796fe2b091a35d0c109cea6b865e0c8 /modules/translation/translation.go | |
parent | b519e4750b9504ce7b89861e2ebe94edc8187372 (diff) | |
download | gitea-4ef7e496b878911fd82f9036bde886ca725c4449.tar.gz gitea-4ef7e496b878911fd82f9036bde886ca725c4449.zip |
Add a trailing slash to dashboard links (#29555) (#29573)
Backport #29555
Diffstat (limited to 'modules/translation/translation.go')
-rw-r--r-- | modules/translation/translation.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/translation/translation.go b/modules/translation/translation.go index dba4de6607..0acfe48c97 100644 --- a/modules/translation/translation.go +++ b/modules/translation/translation.go @@ -140,7 +140,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 } |