diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-03-04 02:02:51 +0100 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2024-03-06 05:10:47 +0100 |
commit | de6768ed546fbdd6237798c1fdb0715e7950ecfb (patch) | |
tree | 05ab574ac22a184df800447be71e6d3fca988b7e /modules/translation/mock.go | |
parent | Partial cherry-pick: a4859dcfea Improve user experience for outdated comments... (diff) | |
download | forgejo-de6768ed546fbdd6237798c1fdb0715e7950ecfb.tar.xz forgejo-de6768ed546fbdd6237798c1fdb0715e7950ecfb.zip |
Add an trailing slash to dashboard links (#29555)
Fix #29533, and add some tests for "base/paginate.tmpl"
(cherry picked from commit 8553b4600e3035b6f6ad6907c37cebd013fa4d64)
Conflicts:
services/contexttest/context_tests.go
trivial conflict because
"Improve user experience for outdated comments" was skipped
Diffstat (limited to 'modules/translation/mock.go')
-rw-r--r-- | modules/translation/mock.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/translation/mock.go b/modules/translation/mock.go index 1f0559f38d..18fbc1044a 100644 --- a/modules/translation/mock.go +++ b/modules/translation/mock.go @@ -9,7 +9,9 @@ import ( ) // MockLocale provides a mocked locale without any translations -type MockLocale struct{} +type MockLocale struct { + Lang, LangName string // these fields are used directly in templates: ctx.Locale.Lang +} var _ Locale = (*MockLocale)(nil) |