Skip to content

Commit

Permalink
fix: code search title translation (#22285)
Browse files Browse the repository at this point in the history
`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>
  • Loading branch information
3 people committed Jan 2, 2023
1 parent e61ce93 commit fcd6cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/user/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit fcd6cee

Please sign in to comment.