From fcd6ceef2b76aabd6a8ffab688492cc7f69269bf Mon Sep 17 00:00:00 2001 From: John Olheiser Date: Mon, 2 Jan 2023 03:18:08 -0600 Subject: [PATCH] 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 Co-authored-by: Lunny Xiao Co-authored-by: Lauris BH --- routers/web/user/code.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")