diff options
author | John Olheiser <john.olheiser@gmail.com> | 2023-01-02 03:18:08 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-02 17:18:08 +0800 |
commit | fcd6ceef2b76aabd6a8ffab688492cc7f69269bf (patch) | |
tree | 9fc47b824873c481b88cf2d1350e017bf247e268 /routers | |
parent | e61ce934bc4ce70214351d8b89eecd484b3f8bd8 (diff) | |
download | gitea-fcd6ceef2b76aabd6a8ffab688492cc7f69269bf.tar.gz gitea-fcd6ceef2b76aabd6a8ffab688492cc7f69269bf.zip |
fix: code search title translation (#22285)
`code.title` isn't an existing translation.
`explore.code` is the translation used for the tab, which I think
matches closely enough for this instead of a brand new translation.
Open to feedback on whether a new translation would be preferred
instead.
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/user/code.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/code.go b/routers/web/user/code.go index 0f95932061..81e3e65b4b 100644 --- a/routers/web/user/code.go +++ b/routers/web/user/code.go @@ -26,7 +26,7 @@ func CodeSearch(ctx *context.Context) { ctx.Data["IsPackageEnabled"] = setting.Packages.Enabled ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled - ctx.Data["Title"] = ctx.Tr("code.title") + ctx.Data["Title"] = ctx.Tr("explore.code") ctx.Data["ContextUser"] = ctx.ContextUser language := ctx.FormTrim("l") |