From 60f7a759c8e3f1b473e455c4a3f29e02fa554b8d Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Fri, 15 Mar 2024 18:09:36 +0100 Subject: [PATCH 01/19] deduplicate cancel translation --- options/locale/locale_en-US.ini | 11 ----------- templates/base/head_script.tmpl | 2 +- templates/base/modal_actions_confirm.tmpl | 2 +- templates/projects/new.tmpl | 2 +- templates/projects/view.tmpl | 4 ++-- templates/repo/commit_page.tmpl | 4 ++-- templates/repo/diff/box.tmpl | 2 +- templates/repo/editor/cherry_pick.tmpl | 2 +- templates/repo/editor/edit.tmpl | 2 +- templates/repo/editor/patch.tmpl | 2 +- templates/repo/editor/upload.tmpl | 2 +- templates/repo/issue/milestone_new.tmpl | 2 +- templates/repo/issue/view_content.tmpl | 2 +- templates/repo/issue/view_content/sidebar.tmpl | 6 +++--- templates/repo/issue/view_title.tmpl | 2 +- templates/repo/migrate/migrating.tmpl | 4 ++-- templates/repo/release/new.tmpl | 2 +- templates/repo/settings/options.tmpl | 10 +++++----- templates/user/settings/keys_gpg.tmpl | 2 +- templates/user/settings/keys_ssh.tmpl | 2 +- 20 files changed, 28 insertions(+), 39 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index dc16d78fc7e6e..87c286531ef81 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -523,7 +523,6 @@ team_invite.text_3 = Note: This invitation was intended for %[1]s. If you were n yes = Yes no = No confirm = Confirm -cancel = Cancel modify = Update [form] @@ -708,7 +707,6 @@ change_username = Your username has been changed. change_username_prompt = Note: Changing your username also changes your account URL. change_username_redirect_prompt = The old username will redirect until someone claims it. continue = Continue -cancel = Cancel language = Language ui = Theme hidden_comment_types = Hidden comment types @@ -875,7 +873,6 @@ generate_token_success = Your new token has been generated. Copy it now as it wi generate_token_name_duplicate = %s has been used as an application name already. Please use a new one. delete_token = Delete access_token_deletion = Delete Access Token -access_token_deletion_cancel_action = Cancel access_token_deletion_confirm_action = Delete access_token_deletion_desc = Deleting a token will revoke access to your account for applications using it. This cannot be undone. Continue? delete_token_success = The token has been deleted. Applications using it no longer have access to your account. @@ -1168,7 +1165,6 @@ migrate.migrating_labels = Migrating Labels migrate.migrating_releases = Migrating Releases migrate.migrating_issues = Migrating Issues migrate.migrating_pulls = Migrating Pull Requests -migrate.cancel_migrating_title = Cancel Migration migrate.cancel_migrating_confirm = Do you want to cancel this migration? mirror_from = mirror of @@ -1281,7 +1277,6 @@ editor.file_delete_success = File "%s" has been deleted. editor.name_your_file = Name your file… editor.filename_help = Add a directory by typing its name followed by a slash ('/'). Remove a directory by typing backspace at the beginning of the input field. editor.or = or -editor.cancel_lower = Cancel editor.commit_signed_changes = Commit Signed Changes editor.commit_changes = Commit Changes editor.add_tmpl = Add '' @@ -1300,7 +1295,6 @@ editor.create_new_branch_np = Create a new branch for this comm editor.propose_file_change = Propose file change editor.new_branch_name = Name the new branch for this commit editor.new_branch_name_desc = New branch name… -editor.cancel = Cancel editor.filename_cannot_be_empty = The filename cannot be empty. editor.filename_is_invalid = The filename is invalid: "%s". editor.branch_does_not_exist = Branch "%s" does not exist in this repository. @@ -1580,7 +1574,6 @@ issues.dismiss_review = Dismiss Review issues.dismiss_review_warning = Are you sure you want to dismiss this review? issues.sign_in_require_desc = Sign in to join this conversation. issues.edit = Edit -issues.cancel = Cancel issues.save = Save issues.label_title = Name issues.label_description = Description @@ -1647,7 +1640,6 @@ issues.cancel_tracking_history = `canceled time tracking %s` issues.add_time = Manually Add Time issues.del_time = Delete this time log issues.add_time_short = Add Time -issues.add_time_cancel = Cancel issues.add_time_history = `added spent time %s` issues.del_time_history= `deleted spent time %s` issues.add_time_hours = Hours @@ -1681,7 +1673,6 @@ issues.dependency.no_permission_1 = "You do not have permission to read %d depen issues.dependency.no_permission_n = "You do not have permission to read %d dependencies" issues.dependency.no_permission.can_remove = "You do not have permission to read this dependency but can remove this dependency" issues.dependency.add = Add dependency… -issues.dependency.cancel = Cancel issues.dependency.remove = Remove issues.dependency.remove_info = Remove this dependency issues.dependency.added_dependency = `added a new dependency %s` @@ -1911,7 +1902,6 @@ milestones.invalid_due_date_format = "Due date format must be 'yyyy-mm-dd'." milestones.create_success = The milestone "%s" has been created. milestones.edit = Edit Milestone milestones.edit_subheader = Milestones organize issues and track progress. -milestones.cancel = Cancel milestones.modify = Update Milestone milestones.edit_success = Milestone "%s" has been updated. milestones.deletion = Delete Milestone @@ -2562,7 +2552,6 @@ release.title_empty = Title cannot be empty. release.message = Describe this release release.prerelease_desc = Mark as Pre-Release release.prerelease_helper = Mark this release unsuitable for production use. -release.cancel = Cancel release.publish = Publish Release release.save_draft = Save Draft release.edit_release = Update Release diff --git a/templates/base/head_script.tmpl b/templates/base/head_script.tmpl index 22e08e9c8f69c..3ddcd33682516 100644 --- a/templates/base/head_script.tmpl +++ b/templates/base/head_script.tmpl @@ -40,7 +40,7 @@ If you introduce mistakes in it, Gitea JavaScript code wouldn't run correctly. network_error: {{ctx.Locale.Tr "error.network_error"}}, remove_label_str: {{ctx.Locale.Tr "remove_label_str"}}, modal_confirm: {{ctx.Locale.Tr "modal.confirm"}}, - modal_cancel: {{ctx.Locale.Tr "modal.cancel"}}, + modal_cancel: {{ctx.Locale.Tr "cancel"}}, more_items: {{ctx.Locale.Tr "more_items"}}, }, }; diff --git a/templates/base/modal_actions_confirm.tmpl b/templates/base/modal_actions_confirm.tmpl index c44320deffbb8..6a51e169b432d 100644 --- a/templates/base/modal_actions_confirm.tmpl +++ b/templates/base/modal_actions_confirm.tmpl @@ -17,7 +17,7 @@ The ".ok.button" and ".cancel.button" selectors are also used by Fomantic Modal {{$textNegitive := ctx.Locale.Tr "modal.no"}} {{$textPositive := ctx.Locale.Tr "modal.yes"}} {{if eq .ModalButtonTypes "confirm"}} - {{$textNegitive = ctx.Locale.Tr "modal.cancel"}} + {{$textNegitive = ctx.Locale.Tr "cancel"}} {{$textPositive = ctx.Locale.Tr "modal.confirm"}} {{end}} {{if .ModalButtonCancelText}}{{$textNegitive = .ModalButtonCancelText}}{{end}} diff --git a/templates/projects/new.tmpl b/templates/projects/new.tmpl index 92ee36c1c44fd..f1efbac89141f 100644 --- a/templates/projects/new.tmpl +++ b/templates/projects/new.tmpl @@ -57,7 +57,7 @@
- {{ctx.Locale.Tr "repo.milestones.cancel"}} + {{ctx.Locale.Tr "cancel"}}
- +
@@ -130,7 +130,7 @@
- +
diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl index 80af73ce486e7..d3ffee6e1999c 100644 --- a/templates/repo/commit_page.tmpl +++ b/templates/repo/commit_page.tmpl @@ -97,7 +97,7 @@
- +
@@ -122,7 +122,7 @@
- +
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 39df6faea50dc..5dd52b67cfbf3 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -243,7 +243,7 @@ {{end}}
- +
diff --git a/templates/repo/editor/cherry_pick.tmpl b/templates/repo/editor/cherry_pick.tmpl index f9c9eef5aab64..86bdaefabc66c 100644 --- a/templates/repo/editor/cherry_pick.tmpl +++ b/templates/repo/editor/cherry_pick.tmpl @@ -20,7 +20,7 @@ {{.Repository.FullName}} {{.BranchName}} - {{ctx.Locale.Tr "repo.editor.or"}} {{ctx.Locale.Tr "repo.editor.cancel_lower"}} + {{ctx.Locale.Tr "repo.editor.or"}} {{ctx.Locale.Tr "cancel"}} {{template "repo/editor/commit_form" .}} diff --git a/templates/repo/editor/edit.tmpl b/templates/repo/editor/edit.tmpl index 05a8d966815b0..0864532b63488 100644 --- a/templates/repo/editor/edit.tmpl +++ b/templates/repo/editor/edit.tmpl @@ -21,7 +21,7 @@ {{$v}} {{end}} {{end}} - {{ctx.Locale.Tr "repo.editor.or"}} {{ctx.Locale.Tr "repo.editor.cancel_lower"}} + {{ctx.Locale.Tr "repo.editor.or"}} {{ctx.Locale.Tr "cancel"}} diff --git a/templates/repo/editor/patch.tmpl b/templates/repo/editor/patch.tmpl index 8df87589889ba..b3216adede3e6 100644 --- a/templates/repo/editor/patch.tmpl +++ b/templates/repo/editor/patch.tmpl @@ -13,7 +13,7 @@ {{.Repository.FullName}} {{.BranchName}} - {{ctx.Locale.Tr "repo.editor.or"}} {{ctx.Locale.Tr "repo.editor.cancel_lower"}} + {{ctx.Locale.Tr "repo.editor.or"}} {{ctx.Locale.Tr "cancel"}} diff --git a/templates/repo/editor/upload.tmpl b/templates/repo/editor/upload.tmpl index 0a7c49dae3d16..a0d233a81ce6f 100644 --- a/templates/repo/editor/upload.tmpl +++ b/templates/repo/editor/upload.tmpl @@ -19,7 +19,7 @@ {{$v}} {{end}} {{end}} - {{ctx.Locale.Tr "repo.editor.or"}} {{ctx.Locale.Tr "repo.editor.cancel_lower"}} + {{ctx.Locale.Tr "repo.editor.or"}} {{ctx.Locale.Tr "cancel"}} diff --git a/templates/repo/issue/milestone_new.tmpl b/templates/repo/issue/milestone_new.tmpl index 7a56d73ac93f0..b1b202edc32cc 100644 --- a/templates/repo/issue/milestone_new.tmpl +++ b/templates/repo/issue/milestone_new.tmpl @@ -42,7 +42,7 @@
{{if .PageIsEditMilestone}} - {{ctx.Locale.Tr "repo.milestones.cancel"}} + {{ctx.Locale.Tr "cancel"}} +
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index 329a39dd69e06..28d6900392be5 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -79,7 +79,7 @@
- +
@@ -318,7 +318,7 @@
- +
+ + {{end}} diff --git a/templates/repo/migrate/migrating.tmpl b/templates/repo/migrate/migrating.tmpl index 1d5a231db8744..2e92d390d289b 100644 --- a/templates/repo/migrate/migrating.tmpl +++ b/templates/repo/migrate/migrating.tmpl @@ -78,7 +78,7 @@
- +
@@ -87,7 +87,7 @@
- +
@@ -956,7 +956,7 @@
- +
@@ -990,7 +990,7 @@
- +
@@ -1022,7 +1022,7 @@
- +
diff --git a/templates/user/settings/keys_gpg.tmpl b/templates/user/settings/keys_gpg.tmpl index e57658b197338..6ab8b17278f68 100644 --- a/templates/user/settings/keys_gpg.tmpl +++ b/templates/user/settings/keys_gpg.tmpl @@ -103,7 +103,7 @@ {{ctx.Locale.Tr "settings.gpg_key_verify"}}
- {{ctx.Locale.Tr "settings.cancel"}} + {{ctx.Locale.Tr "cancel"}} diff --git a/templates/user/settings/keys_ssh.tmpl b/templates/user/settings/keys_ssh.tmpl index 94ee2a1a55cda..8408778215834 100644 --- a/templates/user/settings/keys_ssh.tmpl +++ b/templates/user/settings/keys_ssh.tmpl @@ -91,7 +91,7 @@ {{ctx.Locale.Tr "settings.ssh_key_verify"}} - {{ctx.Locale.Tr "settings.cancel"}} + {{ctx.Locale.Tr "cancel"}} From 559add571da7c5ce30ddcbbe7d8c5255ef581a9b Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Fri, 15 Mar 2024 18:15:09 +0100 Subject: [PATCH 02/19] deduplicate edit translation --- options/locale/locale_en-US.ini | 8 -------- templates/admin/auth/list.tmpl | 2 +- templates/admin/user/view.tmpl | 2 +- templates/repo/issue/view_content/context_menu.tmpl | 2 +- templates/repo/issue/view_title.tmpl | 2 +- templates/repo/release/list.tmpl | 2 +- templates/repo/settings/branches.tmpl | 2 +- templates/repo/wiki/view.tmpl | 6 +++--- templates/user/settings/applications_oauth2_list.tmpl | 2 +- 9 files changed, 10 insertions(+), 18 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 87c286531ef81..1b5a515673b54 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -906,7 +906,6 @@ oauth2_client_secret = Client Secret oauth2_regenerate_secret = Regenerate Secret oauth2_regenerate_secret_hint = Lost your secret? oauth2_client_secret_hint = The secret will not be shown again after you leave or refresh this page. Please ensure that you have saved it. -oauth2_application_edit = Edit oauth2_application_create_description = OAuth2 applications gives your third-party application access to user accounts on this instance. oauth2_application_remove_description = Removing an OAuth2 application will prevent it from accessing authorized user accounts on this instance. Continue? oauth2_application_locked = Gitea pre-registers some OAuth2 applications on startup if enabled in config. To prevent unexpected behavior, these can neither be edited nor removed. Please refer to the OAuth2 documentation for more information. @@ -1533,7 +1532,6 @@ issues.delete_comment_confirm = Are you sure you want to delete this comment? issues.context.copy_link = Copy Link issues.context.quote_reply = Quote Reply issues.context.reference_issue = Reference in New Issue -issues.context.edit = Edit issues.context.delete = Delete issues.no_content = No description provided. issues.close = Close Issue @@ -1573,7 +1571,6 @@ issues.remove_request_review_block=Can't remove review request issues.dismiss_review = Dismiss Review issues.dismiss_review_warning = Are you sure you want to dismiss this review? issues.sign_in_require_desc = Sign in to join this conversation. -issues.edit = Edit issues.save = Save issues.label_title = Name issues.label_description = Description @@ -1586,7 +1583,6 @@ issues.label_exclusive_desc = Name the label scope/item to make it issues.label_exclusive_warning = Any conflicting scoped labels will be removed when editing the labels of an issue or pull request. issues.label_count = %d labels issues.label_open_issues = %d open issues/pull requests -issues.label_edit = Edit issues.label_delete = Delete issues.label_modify = Edit Label issues.label_deletion = Delete Label @@ -1944,7 +1940,6 @@ wiki.page_content = Page content wiki.default_commit_message = Write a note about this page update (optional). wiki.save_page = Save Page wiki.last_commit_info = %s edited this page %s -wiki.edit_page_button = Edit wiki.new_page_button = New Page wiki.file_revision = Page Revision wiki.wiki_page_revisions = Wiki Page Revisions @@ -2402,7 +2397,6 @@ settings.merge_style_desc = Merge Styles settings.default_merge_style_desc = Default Merge Style settings.choose_branch = Choose a branch… settings.no_protected_branch = There are no protected branches. -settings.edit_protected_branch = Edit settings.protected_branch_required_rule_name = Required rule name settings.protected_branch_duplicate_rule_name = Duplicate rule name settings.protected_branch_required_approvals_min = Required approvals cannot be negative. @@ -2535,7 +2529,6 @@ release.draft = Draft release.prerelease = Pre-Release release.stable = Stable release.compare = Compare -release.edit = edit release.ahead.commits = %d commits release.ahead.target = to %s since this release tag.ahead.target = to %s since this tag @@ -2886,7 +2879,6 @@ users.last_login = Last Sign-In users.never_login = Never Signed-In users.send_register_notify = Send User Registration Notification users.new_success = The user account "%s" has been created. -users.edit = Edit users.auth_source = Authentication Source users.local = Local users.auth_login_name = Authentication Sign-In Name diff --git a/templates/admin/auth/list.tmpl b/templates/admin/auth/list.tmpl index 6483ec800c4a1..e916f7b097862 100644 --- a/templates/admin/auth/list.tmpl +++ b/templates/admin/auth/list.tmpl @@ -16,7 +16,7 @@ {{ctx.Locale.Tr "admin.auths.enabled"}} {{ctx.Locale.Tr "admin.auths.updated"}} {{ctx.Locale.Tr "admin.users.created"}} - {{ctx.Locale.Tr "admin.users.edit"}} + {{ctx.Locale.Tr "edit"}} diff --git a/templates/admin/user/view.tmpl b/templates/admin/user/view.tmpl index fd3017607cdc1..4704a375bd54d 100644 --- a/templates/admin/user/view.tmpl +++ b/templates/admin/user/view.tmpl @@ -6,7 +6,7 @@

{{.Title}}

diff --git a/templates/repo/issue/view_content/context_menu.tmpl b/templates/repo/issue/view_content/context_menu.tmpl index 17556d4e4894a..4ada6036d6d17 100644 --- a/templates/repo/issue/view_content/context_menu.tmpl +++ b/templates/repo/issue/view_content/context_menu.tmpl @@ -20,7 +20,7 @@ {{end}} {{if or .ctxData.Permission.IsAdmin .IsCommentPoster .ctxData.HasIssuesOrPullsWritePermission}}
-
{{ctx.Locale.Tr "repo.issues.context.edit"}}
+
{{ctx.Locale.Tr "edit"}}
{{if .delete}}
{{ctx.Locale.Tr "repo.issues.context.delete"}}
{{end}} diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl index a33e8ae5b9a9c..9dce9e7e3a66f 100644 --- a/templates/repo/issue/view_title.tmpl +++ b/templates/repo/issue/view_title.tmpl @@ -14,7 +14,7 @@
{{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .Repository.IsArchived)}} - + {{end}} {{if not .Issue.IsPull}} {{ctx.Locale.Tr "repo.issues.new"}} diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index 873cccab79f55..13ce429a2cd9c 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -30,7 +30,7 @@
{{if and $.CanCreateRelease (not $.PageIsSingleTag)}} - + {{svg "octicon-pencil"}} {{end}} diff --git a/templates/repo/settings/branches.tmpl b/templates/repo/settings/branches.tmpl index 73aff887f367c..80ef06fa316b5 100644 --- a/templates/repo/settings/branches.tmpl +++ b/templates/repo/settings/branches.tmpl @@ -48,7 +48,7 @@
- {{ctx.Locale.Tr "repo.settings.edit_protected_branch"}} + {{ctx.Locale.Tr "edit"}} diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index 19da3fd199f0f..563f86137041a 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -50,7 +50,7 @@ {{end}} {{if and .CanWriteWiki (not .Repository.IsMirror)}} @@ -79,7 +79,7 @@ {{if .sidebarPresent}} diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 7c5bb0fa1d947..aed439ded3825 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -163,7 +163,7 @@
- +
diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl index 9dce9e7e3a66f..76969cf4f4410 100644 --- a/templates/repo/issue/view_title.tmpl +++ b/templates/repo/issue/view_title.tmpl @@ -23,7 +23,7 @@ {{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .Repository.IsArchived)}}
- +
{{end}}
diff --git a/templates/repo/settings/protected_branch.tmpl b/templates/repo/settings/protected_branch.tmpl index e95dd831c945b..3cdca39cd0cb2 100644 --- a/templates/repo/settings/protected_branch.tmpl +++ b/templates/repo/settings/protected_branch.tmpl @@ -263,7 +263,7 @@
- +
diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl index 640f8ca9cd607..5fd971859d841 100644 --- a/templates/repo/wiki/new.tmpl +++ b/templates/repo/wiki/new.tmpl @@ -37,7 +37,7 @@
{{ctx.Locale.Tr "cancel"}} - +
diff --git a/templates/user/settings/applications_oauth2_edit_form.tmpl b/templates/user/settings/applications_oauth2_edit_form.tmpl index c0bddd55b3d98..6d0abf5c30598 100644 --- a/templates/user/settings/applications_oauth2_edit_form.tmpl +++ b/templates/user/settings/applications_oauth2_edit_form.tmpl @@ -46,7 +46,7 @@ From 806520b7fecfd4e938d06dc0b966dd5660393209 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Fri, 15 Mar 2024 18:24:38 +0100 Subject: [PATCH 04/19] deduplicate delete translation --- options/locale/locale_en-US.ini | 8 -------- templates/admin/repo/unadopted.tmpl | 2 +- templates/projects/list.tmpl | 2 +- templates/projects/view.tmpl | 2 +- templates/repo/issue/labels/label_list.tmpl | 4 ++-- templates/repo/issue/milestones.tmpl | 2 +- templates/repo/issue/view_content/context_menu.tmpl | 2 +- templates/repo/settings/webhook/settings.tmpl | 2 +- templates/user/dashboard/milestones.tmpl | 2 +- templates/user/settings/applications.tmpl | 2 +- templates/user/settings/repos.tmpl | 2 +- 11 files changed, 11 insertions(+), 19 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index a889ca32d085f..82c501b1b6b5f 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -871,9 +871,7 @@ token_name = Token Name generate_token = Generate Token generate_token_success = Your new token has been generated. Copy it now as it will not be shown again. generate_token_name_duplicate = %s has been used as an application name already. Please use a new one. -delete_token = Delete access_token_deletion = Delete Access Token -access_token_deletion_confirm_action = Delete access_token_deletion_desc = Deleting a token will revoke access to your account for applications using it. This cannot be undone. Continue? delete_token_success = The token has been deleted. Applications using it no longer have access to your account. repo_and_org_access = Repository and Organization Access @@ -1065,7 +1063,6 @@ adopt_preexisting_label = Adopt Files adopt_preexisting = Adopt pre-existing files adopt_preexisting_content = Create repository from %s adopt_preexisting_success = Adopted files and created repository from %s -delete_preexisting_label = Delete delete_preexisting = Delete pre-existing files delete_preexisting_content = Delete files in %s delete_preexisting_success = Deleted unadopted files in %s @@ -1531,7 +1528,6 @@ issues.delete_comment_confirm = Are you sure you want to delete this comment? issues.context.copy_link = Copy Link issues.context.quote_reply = Quote Reply issues.context.reference_issue = Reference in New Issue -issues.context.delete = Delete issues.no_content = No description provided. issues.close = Close Issue issues.comment_pull_merged_at = merged commit %[1]s into %[2]s %[3]s @@ -1581,7 +1577,6 @@ issues.label_exclusive_desc = Name the label scope/item to make it issues.label_exclusive_warning = Any conflicting scoped labels will be removed when editing the labels of an issue or pull request. issues.label_count = %d labels issues.label_open_issues = %d open issues/pull requests -issues.label_delete = Delete issues.label_modify = Edit Label issues.label_deletion = Delete Label issues.label_deletion_desc = Deleting a label removes it from all issues. Continue? @@ -1618,7 +1613,6 @@ issues.lock.reason = Reason for locking issues.lock.title = Lock conversation on this issue. issues.unlock.title = Unlock conversation on this issue. issues.comment_on_locked = You cannot comment on a locked issue. -issues.delete = Delete issues.delete.title = Delete this issue? issues.delete.text = Do you really want to delete this issue? (This will permanently remove all content. Consider closing it instead, if you intend to keep it archived) issues.tracker = Time Tracker @@ -2234,7 +2228,6 @@ settings.event_choose = Custom Events… settings.event_header_repository = Repository Events settings.event_create = Create settings.event_create_desc = Branch or tag created. -settings.event_delete = Delete settings.event_delete_desc = Branch or tag deleted. settings.event_fork = Fork settings.event_fork_desc = Repository forked. @@ -2564,7 +2557,6 @@ release.tags_for = Tags for %s branch.name = Branch Name branch.already_exists = A branch named "%s" already exists. -branch.delete_head = Delete branch.delete = Delete Branch "%s" branch.delete_html = Delete Branch branch.delete_desc = Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue? diff --git a/templates/admin/repo/unadopted.tmpl b/templates/admin/repo/unadopted.tmpl index c65cfd9db417e..4b909f55d6d39 100644 --- a/templates/admin/repo/unadopted.tmpl +++ b/templates/admin/repo/unadopted.tmpl @@ -40,7 +40,7 @@ {{template "base/modal_actions_confirm"}} - + diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl index 52043d7f2f290..f159f190048cc 100644 --- a/templates/projects/view.tmpl +++ b/templates/projects/view.tmpl @@ -22,7 +22,7 @@ {{end}} diff --git a/templates/user/settings/repos.tmpl b/templates/user/settings/repos.tmpl index eeb2b6cbddf2a..d942247da0025 100644 --- a/templates/user/settings/repos.tmpl +++ b/templates/user/settings/repos.tmpl @@ -51,7 +51,7 @@ {{end}} {{if $.allowDelete}} - + {{ctx.Locale.Tr "packages.dependency.id"}} - {{ctx.Locale.Tr "packages.dependency.version"}} + {{ctx.Locale.Tr "version"}} diff --git a/templates/package/content/npm_dependencies.tmpl b/templates/package/content/npm_dependencies.tmpl index dba45750b7f7a..d019a3e245023 100644 --- a/templates/package/content/npm_dependencies.tmpl +++ b/templates/package/content/npm_dependencies.tmpl @@ -4,7 +4,7 @@ {{ctx.Locale.Tr "packages.dependency.id"}} - {{ctx.Locale.Tr "packages.dependency.version"}} + {{ctx.Locale.Tr "version"}} diff --git a/templates/package/content/nuget.tmpl b/templates/package/content/nuget.tmpl index 0911260fbaa21..ed200cf1d7006 100644 --- a/templates/package/content/nuget.tmpl +++ b/templates/package/content/nuget.tmpl @@ -31,7 +31,7 @@ {{ctx.Locale.Tr "packages.dependency.id"}} - {{ctx.Locale.Tr "packages.dependency.version"}} + {{ctx.Locale.Tr "version"}} {{ctx.Locale.Tr "packages.nuget.dependency.framework"}} diff --git a/templates/package/content/rubygems_dependencies.tmpl b/templates/package/content/rubygems_dependencies.tmpl index 2c42dcead2ddc..28b5c355998a2 100644 --- a/templates/package/content/rubygems_dependencies.tmpl +++ b/templates/package/content/rubygems_dependencies.tmpl @@ -4,7 +4,7 @@ {{ctx.Locale.Tr "packages.dependency.id"}} - {{ctx.Locale.Tr "packages.dependency.version"}} + {{ctx.Locale.Tr "version"}} diff --git a/templates/package/shared/cleanup_rules/preview.tmpl b/templates/package/shared/cleanup_rules/preview.tmpl index cff8e8249f46f..ada2fdca0847f 100644 --- a/templates/package/shared/cleanup_rules/preview.tmpl +++ b/templates/package/shared/cleanup_rules/preview.tmpl @@ -8,7 +8,7 @@ {{ctx.Locale.Tr "admin.packages.type"}} {{ctx.Locale.Tr "admin.packages.name"}} - {{ctx.Locale.Tr "admin.packages.version"}} + {{ctx.Locale.Tr "version"}} {{ctx.Locale.Tr "admin.packages.creator"}} {{ctx.Locale.Tr "admin.packages.size"}} {{ctx.Locale.Tr "admin.packages.published"}} diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 73c9ca6a1f8d1..2a1093eab7414 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -64,7 +64,7 @@
- +
- +
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index 28d6900392be5..2e9ff2a0db30b 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -270,7 +270,7 @@
- {{ctx.Locale.Tr "notification.notifications"}} + {{ctx.Locale.Tr "notifications"}}
{{template "repo/issue/view_content/watching" .}}
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 62f6dc05f91a4..9bf8d74311ad5 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -17,7 +17,7 @@ {{FileSize .Repository.Size}}
- +
diff --git a/templates/repo/settings/webhook/discord.tmpl b/templates/repo/settings/webhook/discord.tmpl index 104346e04219b..df07d8115a50c 100644 --- a/templates/repo/settings/webhook/discord.tmpl +++ b/templates/repo/settings/webhook/discord.tmpl @@ -7,7 +7,7 @@
- +
diff --git a/templates/repo/settings/webhook/slack.tmpl b/templates/repo/settings/webhook/slack.tmpl index e7cae92d4bf16..c694ba06247aa 100644 --- a/templates/repo/settings/webhook/slack.tmpl +++ b/templates/repo/settings/webhook/slack.tmpl @@ -12,7 +12,7 @@
- +
diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl index 5fd971859d841..8daa5bee8d94d 100644 --- a/templates/repo/wiki/new.tmpl +++ b/templates/repo/wiki/new.tmpl @@ -4,7 +4,7 @@
{{template "base/alert" .}}
- {{ctx.Locale.Tr "repo.wiki.new_page"}} + {{ctx.Locale.Tr "page"}} {{if .PageIsWikiEdit}} {{ctx.Locale.Tr "repo.wiki.new_page_button"}} {{end}} diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index 563f86137041a..7fccb8fd37638 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -8,7 +8,7 @@
diff --git a/templates/user/settings/account.tmpl b/templates/user/settings/account.tmpl index 21d33ccb28164..bd38a81a944bd 100644 --- a/templates/user/settings/account.tmpl +++ b/templates/user/settings/account.tmpl @@ -68,7 +68,7 @@ {{if not .IsPrimary}}
{{if .CanBePrimary}} diff --git a/templates/user/settings/applications_oauth2_list.tmpl b/templates/user/settings/applications_oauth2_list.tmpl index 56664176cc55f..5563a8c0896d4 100644 --- a/templates/user/settings/applications_oauth2_list.tmpl +++ b/templates/user/settings/applications_oauth2_list.tmpl @@ -27,7 +27,7 @@ {{end}}
diff --git a/templates/user/settings/keys_gpg.tmpl b/templates/user/settings/keys_gpg.tmpl index 6ab8b17278f68..74f22540d7605 100644 --- a/templates/user/settings/keys_gpg.tmpl +++ b/templates/user/settings/keys_gpg.tmpl @@ -70,7 +70,7 @@
{{if and (not .Verified) (ne $.VerifyingID .KeyID)}} {{ctx.Locale.Tr "settings.gpg_key_verify"}} diff --git a/templates/user/settings/keys_principal.tmpl b/templates/user/settings/keys_principal.tmpl index b6acb63c5e8cc..c430456e60df5 100644 --- a/templates/user/settings/keys_principal.tmpl +++ b/templates/user/settings/keys_principal.tmpl @@ -27,7 +27,7 @@
diff --git a/templates/user/settings/keys_ssh.tmpl b/templates/user/settings/keys_ssh.tmpl index 8408778215834..530e328a11316 100644 --- a/templates/user/settings/keys_ssh.tmpl +++ b/templates/user/settings/keys_ssh.tmpl @@ -58,7 +58,7 @@
{{if and (not .Verified) (ne $.VerifyingFingerprint .Fingerprint)}} {{ctx.Locale.Tr "settings.ssh_key_verify"}} diff --git a/templates/user/settings/security/accountlinks.tmpl b/templates/user/settings/security/accountlinks.tmpl index 0820844547b90..196514ffecb03 100644 --- a/templates/user/settings/security/accountlinks.tmpl +++ b/templates/user/settings/security/accountlinks.tmpl @@ -41,7 +41,7 @@
diff --git a/templates/user/settings/security/openid.tmpl b/templates/user/settings/security/openid.tmpl index 0e9b4adcbefc9..398775040f2f9 100644 --- a/templates/user/settings/security/openid.tmpl +++ b/templates/user/settings/security/openid.tmpl @@ -31,7 +31,7 @@ {{end}}
diff --git a/templates/user/settings/security/webauthn.tmpl b/templates/user/settings/security/webauthn.tmpl index eceee191bd8a7..660a2b570d7d1 100644 --- a/templates/user/settings/security/webauthn.tmpl +++ b/templates/user/settings/security/webauthn.tmpl @@ -17,7 +17,7 @@
From 65c1c34d8a235e6a08056d36814e5a58311ea492 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Fri, 15 Mar 2024 19:10:59 +0100 Subject: [PATCH 09/19] deduplicate enabled/disabled translation --- options/locale/locale_en-US.ini | 7 ------- templates/admin/auth/list.tmpl | 2 +- templates/admin/config.tmpl | 8 ++++---- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 1ffcca3e0deec..9da90570fccf0 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2928,7 +2928,6 @@ auths.auth_manage_panel = Authentication Source Management auths.new = Add Authentication Source auths.name = Name auths.type = Type -auths.enabled = Enabled auths.syncenabled = Enable User Synchronization auths.updated = Updated auths.auth_type = Authentication Type @@ -3063,7 +3062,6 @@ config.script_type = Script Type config.reverse_auth_user = Reverse Authentication User config.ssh_config = SSH Configuration -config.ssh_enabled = Enabled config.ssh_start_builtin_server = Use Built-In Server config.ssh_domain = SSH Server Domain config.ssh_port = Port @@ -3075,7 +3073,6 @@ config.ssh_minimum_key_size_check = Minimum Key Size Check config.ssh_minimum_key_sizes = Minimum Key Sizes config.lfs_config = LFS Configuration -config.lfs_enabled = Enabled config.lfs_content_path = LFS Content Path config.lfs_http_auth_expiry = LFS HTTP Auth Expiry @@ -3115,7 +3112,6 @@ config.deliver_timeout = Deliver Timeout config.skip_tls_verify = Skip TLS Verification config.mailer_config = Mailer Configuration -config.mailer_enabled = Enabled config.mailer_enable_helo = Enable HELO config.mailer_name = Name config.mailer_protocol = Protocol @@ -3134,7 +3130,6 @@ config.test_mail_failed = Failed to send a testing email to "%s": %v config.test_mail_sent = A testing email has been sent to "%s". config.oauth_config = OAuth Configuration -config.oauth_enabled = Enabled config.cache_config = Cache Configuration config.cache_adapter = Cache Adapter @@ -3171,7 +3166,6 @@ config.git_gc_timeout = GC Operation Timeout config.log_config = Log Configuration config.logger_name_fmt = Logger: %s -config.disabled_logger = Disabled config.access_log_mode = Access Log Mode config.access_log_template = Access Log Template config.xorm_log_sql = Log SQL @@ -3461,7 +3455,6 @@ owner.settings.cleanuprules.none = No cleanup rules available. Please consult th owner.settings.cleanuprules.preview = Cleanup Rule Preview owner.settings.cleanuprules.preview.overview = %d packages are scheduled to be removed. owner.settings.cleanuprules.preview.none = Cleanup rule does not match any packages. -owner.settings.cleanuprules.enabled = Enabled owner.settings.cleanuprules.pattern_full_match = Apply pattern to full package name owner.settings.cleanuprules.keep.title = Versions that match these rules are kept, even if they match a removal rule below. owner.settings.cleanuprules.keep.count = Keep the most recent diff --git a/templates/admin/auth/list.tmpl b/templates/admin/auth/list.tmpl index e916f7b097862..d2ced50156353 100644 --- a/templates/admin/auth/list.tmpl +++ b/templates/admin/auth/list.tmpl @@ -13,7 +13,7 @@ ID {{ctx.Locale.Tr "admin.auths.name"}} {{ctx.Locale.Tr "admin.auths.type"}} - {{ctx.Locale.Tr "admin.auths.enabled"}} + {{ctx.Locale.Tr "enabled"}} {{ctx.Locale.Tr "admin.auths.updated"}} {{ctx.Locale.Tr "admin.users.created"}} {{ctx.Locale.Tr "edit"}} diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 1627841405fe1..e555cab859b42 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -54,7 +54,7 @@
-
{{ctx.Locale.Tr "admin.config.ssh_enabled"}}
+
{{ctx.Locale.Tr "enabled"}}
{{if not .SSH.Disabled}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
{{if not .SSH.Disabled}}
{{ctx.Locale.Tr "admin.config.ssh_start_builtin_server"}}
@@ -89,7 +89,7 @@
-
{{ctx.Locale.Tr "admin.config.lfs_enabled"}}
+
{{ctx.Locale.Tr "enabled"}}
{{if .LFS.StartServer}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
{{if .LFS.StartServer}}
{{ctx.Locale.Tr "admin.config.lfs_content_path"}}
@@ -199,7 +199,7 @@
-
{{ctx.Locale.Tr "admin.config.mailer_enabled"}}
+
{{ctx.Locale.Tr "enabled"}}
{{if .MailerEnabled}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}
{{if .MailerEnabled}}
{{ctx.Locale.Tr "admin.config.mailer_name"}}
@@ -334,7 +334,7 @@ {{if $loggerDetail.IsEnabled}}
{{$loggerDetail.EventWriters | JsonUtils.EncodeToString | JsonUtils.PrettyIndent}}
{{else}} -
{{ctx.Locale.Tr "admin.config.disabled_logger"}}
+
{{ctx.Locale.Tr "disabled"}}
{{end}} {{end}}
From ff5d2a5dfe114dd6d32b25817a1c50b085a5cb79 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Fri, 15 Mar 2024 19:15:22 +0100 Subject: [PATCH 10/19] deduplicate settings translation --- options/locale/locale_en-US.ini | 5 ----- routers/web/admin/config.go | 2 +- templates/admin/navbar.tmpl | 2 +- templates/base/head_navbar.tmpl | 2 +- templates/org/menu.tmpl | 2 +- templates/org/team/new.tmpl | 2 +- templates/org/team/sidebar.tmpl | 2 +- templates/package/settings.tmpl | 2 +- templates/package/view.tmpl | 2 +- templates/repo/header.tmpl | 4 ++-- templates/repo/settings/navbar.tmpl | 2 +- templates/user/settings/navbar.tmpl | 2 +- 12 files changed, 12 insertions(+), 17 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 9da90570fccf0..47a42dcc8dc7b 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -68,7 +68,6 @@ account_settings = Account Settings settings = Settings your_profile = Profile your_starred = Starred -your_settings = Settings all = All sources = Sources @@ -1994,7 +1993,6 @@ contributors.contribution_type.commits = Commits contributors.contribution_type.additions = Additions contributors.contribution_type.deletions = Deletions -settings = Settings settings.desc = Settings is where you can manage the settings for the repository settings.collaboration = Collaborators settings.collaboration.admin = Administrator @@ -2615,7 +2613,6 @@ form.name_reserved = The organization name "%s" is reserved. form.name_pattern_not_allowed = The pattern "%s" is not allowed in an organization name. form.create_org_not_allowed = You are not allowed to create an organization. -settings = Settings settings.full_name = Full Name settings.email = Contact Email settings.website = Website @@ -2674,7 +2671,6 @@ teams.write_access_helper = Members can read and push to team repositories. teams.admin_access = Administrator Access teams.admin_access_helper = Members can pull and push to team repositories and add collaborators to them. teams.no_desc = This team has no description -teams.settings = Settings teams.owners_permission_desc = Owners have full access to all repositories and have administrator access to the organization. teams.members = Team Members teams.update_settings = Update Settings @@ -2721,7 +2717,6 @@ authentication = Authentication Sources emails = User Emails config = Configuration config_summary = Summary -config_settings = Settings notices = System Notices monitor = Monitoring first_page = First diff --git a/routers/web/admin/config.go b/routers/web/admin/config.go index 2f5f17e2013f2..3f76e2837e350 100644 --- a/routers/web/admin/config.go +++ b/routers/web/admin/config.go @@ -171,7 +171,7 @@ func Config(ctx *context.Context) { } func ConfigSettings(ctx *context.Context) { - ctx.Data["Title"] = ctx.Tr("admin.config_settings") + ctx.Data["Title"] = ctx.Tr("settings") ctx.Data["PageIsAdminConfig"] = true ctx.Data["PageIsAdminConfigSettings"] = true ctx.Data["DefaultOpenWithEditorAppsString"] = setting.DefaultOpenWithEditorApps().ToTextareaString() diff --git a/templates/admin/navbar.tmpl b/templates/admin/navbar.tmpl index 51cb675b3698e..758d48b5a7cb2 100644 --- a/templates/admin/navbar.tmpl +++ b/templates/admin/navbar.tmpl @@ -82,7 +82,7 @@ {{ctx.Locale.Tr "admin.config_summary"}} - {{ctx.Locale.Tr "admin.config_settings"}} + {{ctx.Locale.Tr "settings"}}
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 4f48dc82c3270..e9501c955e94b 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -169,7 +169,7 @@ {{svg "octicon-tools"}} - {{ctx.Locale.Tr "your_settings"}} + {{ctx.Locale.Tr "settings"}} {{svg "octicon-question"}} diff --git a/templates/org/menu.tmpl b/templates/org/menu.tmpl index f9af7276dc648..d828fb08f27ad 100644 --- a/templates/org/menu.tmpl +++ b/templates/org/menu.tmpl @@ -41,7 +41,7 @@ {{end}} {{if .IsOrganizationOwner}} - {{svg "octicon-tools"}} {{ctx.Locale.Tr "repo.settings"}} + {{svg "octicon-tools"}} {{ctx.Locale.Tr "settings"}} {{end}}
diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl index 50ef53b91b2eb..9fb194a5d553e 100644 --- a/templates/org/team/new.tmpl +++ b/templates/org/team/new.tmpl @@ -7,7 +7,7 @@
{{.CsrfTokenHtml}}

- {{if .PageIsOrgTeamsNew}}{{ctx.Locale.Tr "org.create_new_team"}}{{else}}{{ctx.Locale.Tr "org.teams.settings"}}{{end}} + {{if .PageIsOrgTeamsNew}}{{ctx.Locale.Tr "org.create_new_team"}}{{else}}{{ctx.Locale.Tr "settings"}}{{end}}

{{template "base/alert" .}} diff --git a/templates/org/team/sidebar.tmpl b/templates/org/team/sidebar.tmpl index 9311a46e38f75..134f5beb94d9c 100644 --- a/templates/org/team/sidebar.tmpl +++ b/templates/org/team/sidebar.tmpl @@ -79,7 +79,7 @@
{{if .IsOrganizationOwner}} {{end}}
diff --git a/templates/package/settings.tmpl b/templates/package/settings.tmpl index 9424baf4939ef..8e42ce09dd0d6 100644 --- a/templates/package/settings.tmpl +++ b/templates/package/settings.tmpl @@ -10,7 +10,7 @@ {{template "user/overview/header" .}} {{end}} {{template "base/alert" .}} -

{{.PackageDescriptor.Package.Name}} ({{.PackageDescriptor.Version.Version}}) / {{ctx.Locale.Tr "repo.settings"}}

+

{{.PackageDescriptor.Package.Name}} ({{.PackageDescriptor.Version.Version}}) / {{ctx.Locale.Tr "settings"}}

{{ctx.Locale.Tr "packages.settings.link"}}

diff --git a/templates/package/view.tmpl b/templates/package/view.tmpl index 54af71126f098..c5d9821154734 100644 --- a/templates/package/view.tmpl +++ b/templates/package/view.tmpl @@ -103,7 +103,7 @@
{{svg "octicon-issue-opened" 16 "gt-mr-3"}} {{ctx.Locale.Tr "repo.issues"}}
{{end}} {{if .CanWritePackages}} -
{{svg "octicon-tools" 16 "gt-mr-3"}} {{ctx.Locale.Tr "repo.settings"}}
+
{{svg "octicon-tools" 16 "gt-mr-3"}} {{ctx.Locale.Tr "settings"}}
{{end}} {{end}} diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 6e0a9985f704b..63188f768e7cd 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -215,14 +215,14 @@ {{if .Permission.IsAdmin}} - {{svg "octicon-tools"}} {{ctx.Locale.Tr "repo.settings"}} + {{svg "octicon-tools"}} {{ctx.Locale.Tr "settings"}} {{end}} {{else if .Permission.IsAdmin}} {{end}} diff --git a/templates/repo/settings/navbar.tmpl b/templates/repo/settings/navbar.tmpl index 5f5a699bafdf5..089d6761a1410 100644 --- a/templates/repo/settings/navbar.tmpl +++ b/templates/repo/settings/navbar.tmpl @@ -1,6 +1,6 @@