Skip to content

Commit fcd6cee

Browse files
jolheiserlunnylafriks
authored
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 <[email protected]> Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: Lauris BH <[email protected]>
1 parent e61ce93 commit fcd6cee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/user/code.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func CodeSearch(ctx *context.Context) {
2626

2727
ctx.Data["IsPackageEnabled"] = setting.Packages.Enabled
2828
ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled
29-
ctx.Data["Title"] = ctx.Tr("code.title")
29+
ctx.Data["Title"] = ctx.Tr("explore.code")
3030
ctx.Data["ContextUser"] = ctx.ContextUser
3131

3232
language := ctx.FormTrim("l")

0 commit comments

Comments
 (0)