From 67f5e19cd87ca605b79b19f574e4ccb3d9263428 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 89bd23588b842..62f3f315e67ba 100644 --- a/routers/web/user/code.go +++ b/routers/web/user/code.go @@ -27,7 +27,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")