diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 5f066beb2d..bce75a3031 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -55,11 +55,8 @@ webauthn_error_timeout = Timeout reached before your key could be read. Please r repository = Repository organization = Organization mirror = Mirror -new_repo = New repository -new_migrate = New migration new_mirror = New mirror new_fork = New repository fork -new_org = New organization new_project = New project new_project_column = New column admin_panel = Site administration @@ -68,6 +65,14 @@ your_profile = Profile your_starred = Starred your_settings = Settings +new_repo.title = New repository +new_migrate.title = New migration +new_org.title = New organization + +new_repo.link = New repository +new_migrate.link = New migration +new_org.link = New organization + all = All sources = Sources mirrors = Mirrors diff --git a/routers/web/org/org.go b/routers/web/org/org.go index f94dd16eae..dd3aab458b 100644 --- a/routers/web/org/org.go +++ b/routers/web/org/org.go @@ -26,7 +26,7 @@ const ( // Create render the page for create organization func Create(ctx *context.Context) { - ctx.Data["Title"] = ctx.Tr("new_org") + ctx.Data["Title"] = ctx.Tr("new_org.title") ctx.Data["DefaultOrgVisibilityMode"] = setting.Service.DefaultOrgVisibilityMode if !ctx.Doer.CanCreateOrganization() { ctx.ServerError("Not allowed", errors.New(ctx.Locale.TrString("org.form.create_org_not_allowed"))) @@ -38,7 +38,7 @@ func Create(ctx *context.Context) { // CreatePost response for create organization func CreatePost(ctx *context.Context) { form := *web.GetForm(ctx).(*forms.CreateOrgForm) - ctx.Data["Title"] = ctx.Tr("new_org") + ctx.Data["Title"] = ctx.Tr("new_org.title") if !ctx.Doer.CanCreateOrganization() { ctx.ServerError("Not allowed", errors.New(ctx.Locale.TrString("org.form.create_org_not_allowed"))) diff --git a/routers/web/repo/migrate.go b/routers/web/repo/migrate.go index 70113e50ec..0acf966bca 100644 --- a/routers/web/repo/migrate.go +++ b/routers/web/repo/migrate.go @@ -253,7 +253,7 @@ func MigratePost(ctx *context.Context) { } func setMigrationContextData(ctx *context.Context, serviceType structs.GitServiceType) { - ctx.Data["Title"] = ctx.Tr("new_migrate") + ctx.Data["Title"] = ctx.Tr("new_migrate.title") ctx.Data["LFSActive"] = setting.LFS.StartServer ctx.Data["IsForcedPrivate"] = setting.Repository.ForcePrivate diff --git a/routers/web/repo/repo.go b/routers/web/repo/repo.go index 652738afda..9562491440 100644 --- a/routers/web/repo/repo.go +++ b/routers/web/repo/repo.go @@ -152,7 +152,7 @@ func getRepoPrivate(ctx *context.Context) bool { // Create render creating repository page func Create(ctx *context.Context) { - ctx.Data["Title"] = ctx.Tr("new_repo") + ctx.Data["Title"] = ctx.Tr("new_repo.title") // Give default value for template to render. ctx.Data["Gitignores"] = repo_module.Gitignores @@ -223,7 +223,7 @@ func handleCreateError(ctx *context.Context, owner *user_model.User, err error, // CreatePost response for creating repository func CreatePost(ctx *context.Context) { form := web.GetForm(ctx).(*forms.CreateRepoForm) - ctx.Data["Title"] = ctx.Tr("new_repo") + ctx.Data["Title"] = ctx.Tr("new_repo.title") ctx.Data["Gitignores"] = repo_module.Gitignores ctx.Data["LabelTemplateFiles"] = repo_module.LabelTemplateFiles diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 068271bbe9..ba17222f9b 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -126,16 +126,16 @@
diff --git a/templates/org/create.tmpl b/templates/org/create.tmpl index 92be4a0adb..ad172ea990 100644 --- a/templates/org/create.tmpl +++ b/templates/org/create.tmpl @@ -5,7 +5,7 @@