loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(i18n): cleanup `settings.adopt` string (#7451)

The translation of `settings.adopt` is not actually used, it is set as the title for a POST handler that does not actually render any template. It does render the the 'Internal server error' template, however for safety reasons it does not use the set context data.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7451
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>

authored by

Gusted
Gusted
and committed by
0ko
1ec67269 d28a64e5

-5
-1
options/locale_next/locale_en-US.json
··· 20 20 "error.not_found.title": "Page not found", 21 21 "alert.asset_load_failed": "Failed to load asset files from {path}. Please make sure the asset files can be accessed.", 22 22 "alert.range_error": " must be a number between %[1]s and %[2]s.", 23 - "settings.adopt": "Adopt", 24 23 "install.invalid_lfs_path": "Unable to create the LFS root at the specified path: %[1]s", 25 24 "install.lfs_jwt_secret_failed": "Unable to generate a LFS JWT secret: %[1]s" 26 25 }
-4
routers/web/user/setting/adopt.go
··· 16 16 17 17 // AdoptOrDeleteRepository adopts or deletes a repository 18 18 func AdoptOrDeleteRepository(ctx *context.Context) { 19 - ctx.Data["Title"] = ctx.Tr("settings.adopt") 20 - ctx.Data["PageIsSettingsRepos"] = true 21 19 allowAdopt := ctx.IsUserSiteAdmin() || setting.Repository.AllowAdoptionOfUnadoptedRepositories 22 - ctx.Data["allowAdopt"] = allowAdopt 23 20 allowDelete := ctx.IsUserSiteAdmin() || setting.Repository.AllowDeleteOfUnadoptedRepositories 24 - ctx.Data["allowDelete"] = allowDelete 25 21 26 22 dir := ctx.FormString("id") 27 23 action := ctx.FormString("action")