Skip to content

Commit 8235a97

Browse files
0koJoshdike
andcommitted
fix(i18n): improve en locale (#8593)
This commit has the following: * partial port of changes from [gitea#35053](go-gitea/gitea#35053) ([corresponding WCP](https://codeberg.org/forgejo/forgejo/pulls/8591)) * some changes were applied * some strings we've fixed ourself before * some strings we don't have * a few fixes I wanted to propose but didn't want to dedicate a PR just to add a full stop to one string Co-authored-by: DJ Phoenix <[email protected]> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8593 Reviewed-by: Robert Wolff <[email protected]> Reviewed-by: Gusted <[email protected]>
1 parent ed3c558 commit 8235a97

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

options/locale/locale_en-US.ini

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ no_reply_address = Hidden email domain
372372
no_reply_address_helper = Domain name for users with a hidden email address. For example, the username "joe" will be logged in Git as "[email protected]" if the hidden email domain is set to "noreply.example.org".
373373
password_algorithm = Password hash algorithm
374374
invalid_password_algorithm = Invalid password hash algorithm
375-
password_algorithm_helper = Set the password hashing algorithm. Algorithms have differing requirements and strength. The argon2 algorithm is rather secure but uses a lot of memory and may be inappropriate for small systems.
375+
password_algorithm_helper = Set the password hashing algorithm. Algorithms have differing requirements and strengths. The argon2 algorithm is rather secure but uses a lot of memory and may be inappropriate for small systems.
376376
enable_update_checker = Enable update checker
377377
env_config_keys = Environment Configuration
378378
env_config_keys_prompt = The following environment variables will also be applied to your configuration file:
@@ -479,7 +479,7 @@ email_domain_blacklisted = You cannot register with your email address.
479479
authorize_application = Authorize Application
480480
authorize_redirect_notice = You will be redirected to %s if you authorize this application.
481481
authorize_application_created_by = This application was created by %s.
482-
authorize_application_description = If you grant the access, it will be able to access and write to all your account information, including private repos and organizations.
482+
authorize_application_description = If you grant access, it will be able to access and write to all your account information, including private repos and organizations.
483483
authorize_title = Authorize "%s" to access your account?
484484
authorization_failed = Authorization failed
485485
authorization_failed_desc = The authorization failed because we detected an invalid request. Please contact the maintainer of the app you have tried to authorize.
@@ -838,7 +838,7 @@ activations_pending = Activations pending
838838
can_not_add_email_activations_pending = There is a pending activation, try again in a few minutes if you want to add a new email.
839839
delete_email = Remove
840840
email_deletion = Remove email address
841-
email_deletion_desc = The email address and related information will be removed from your account. Git commits by this email address will remain unchanged. Continue?
841+
email_deletion_desc = This email address and related information will be removed from your account. Git commits by this email address will remain unchanged. Continue?
842842
email_deletion_success = The email address has been removed.
843843
theme_update_success = Your theme was updated.
844844
theme_update_error = The selected theme does not exist.
@@ -1056,7 +1056,7 @@ user_block_success = The user has been blocked successfully.
10561056
user_block_yourself = You cannot block yourself.
10571057
10581058
quota.applies_to_user = The following quota rules apply to your account
1059-
quota.applies_to_org = The following quota rules apply to this organisation
1059+
quota.applies_to_org = The following quota rules apply to this organization
10601060
quota.rule.exceeded = Exceeded
10611061
quota.rule.exceeded.helper = The total size of objects for this rule has exceeded the quota.
10621062
quota.rule.no_limit = Unlimited
@@ -1153,7 +1153,7 @@ mirror_sync = synced
11531153
mirror_sync_on_commit = Sync when commits are pushed
11541154
mirror_address = Clone from URL
11551155
mirror_address_desc = Put any required credentials in the Authorization section.
1156-
mirror_address_url_invalid = The provided URL is invalid. You must escape all components of the URL correctly.
1156+
mirror_address_url_invalid = The provided URL is invalid. Make sure that components of the URL are escaped correctly.
11571157
mirror_address_protocol_invalid = The provided URL is invalid. Only http(s):// or git:// locations can be used for mirroring.
11581158
mirror_lfs = Large File Storage (LFS)
11591159
mirror_lfs_desc = Activate mirroring of LFS data.
@@ -1251,7 +1251,7 @@ migrate_repo = Migrate repository
12511251
migrate.repo_desc_helper = Leave empty to import existing description
12521252
migrate.clone_address = Migrate / Clone from URL
12531253
migrate.clone_address_desc = The HTTP(S) or Git "clone" URL of an existing repository
1254-
migrate.github_token_desc = You can put one or more tokens with comma separated here to make migrating faster because of GitHub API rate limit. WARN: Abusing this feature may violate the service provider's policy and lead to account blocking.
1254+
migrate.github_token_desc = You can put one or more tokens here separated by commas to make migrating faster by circumventing the GitHub API rate limit. WARNING: Abusing this feature may violate the service provider's policy and may lead to getting your account(s) blocked.
12551255
migrate.clone_local_path = or a local server path
12561256
migrate.permission_denied = You are not allowed to import local repositories.
12571257
migrate.permission_denied_blocked = You cannot import from disallowed hosts, please ask the admin to check ALLOWED_DOMAINS/ALLOW_LOCALNETWORKS/BLOCKED_DOMAINS settings.
@@ -1919,7 +1919,7 @@ pulls.select_commit_hold_shift_for_range = Select commit. Hold shift + click to
19191919
pulls.review_only_possible_for_full_diff = Review is only possible when viewing the full diff
19201920
pulls.filter_changes_by_commit = Filter by commit
19211921
pulls.nothing_to_compare = These branches are equal. There is no need to create a pull request.
1922-
pulls.nothing_to_compare_have_tag = The selected branch/tag are equal.
1922+
pulls.nothing_to_compare_have_tag = The selected branches/tags are equal.
19231923
pulls.nothing_to_compare_and_allow_empty_pr = These branches are equal. This PR will be empty.
19241924
pulls.has_pull_request = `A pull request between these branches already exists: <a href="%[1]s">%[2]s#%[3]d</a>`
19251925
pulls.create = Create pull request
@@ -2088,7 +2088,7 @@ milestones.filter_sort.most_issues = Most issues
20882088
milestones.filter_sort.least_issues = Least issues
20892089
20902090
signing.will_sign = This commit will be signed with key "%s".
2091-
signing.wont_sign.error = There was an error whilst checking if the commit could be signed.
2091+
signing.wont_sign.error = There was an error while checking if the commit could be signed.
20922092
signing.wont_sign.nokey = This instance has no key to sign this commit with.
20932093
signing.wont_sign.never = Commits are never signed.
20942094
signing.wont_sign.always = Commits are always signed.
@@ -3065,9 +3065,9 @@ dashboard.resync_all_sshprincipals = Update the ".ssh/authorized_principals" fil
30653065
dashboard.resync_all_hooks = Resynchronize pre-receive, update and post-receive hooks of all repositories
30663066
dashboard.reinit_missing_repos = Reinitialize all missing Git repositories for which records exist
30673067
dashboard.sync_external_users = Synchronize external user data
3068-
dashboard.cleanup_hook_task_table = Cleanup hook_task table
3069-
dashboard.cleanup_packages = Cleanup expired packages
3070-
dashboard.cleanup_actions = Cleanup expired logs and artifacts from actions
3068+
dashboard.cleanup_hook_task_table = Clean up hook_task table
3069+
dashboard.cleanup_packages = Clean up expired packages
3070+
dashboard.cleanup_actions = Clean up expired logs and artifacts from actions
30713071
dashboard.server_uptime = Server uptime
30723072
dashboard.current_goroutine = Current goroutines
30733073
dashboard.current_memory_usage = Current memory usage
@@ -3797,7 +3797,7 @@ owner.settings.cargo.initialize.success = The Cargo index was successfully creat
37973797
owner.settings.cargo.rebuild = Rebuild index
37983798
owner.settings.cargo.rebuild.description = Rebuilding can be useful if the index is not synchronized with the stored Cargo packages.
37993799
owner.settings.cargo.rebuild.error = Failed to rebuild Cargo index: %v
3800-
owner.settings.cargo.rebuild.success = The Cargo index was successfully rebuild.
3800+
owner.settings.cargo.rebuild.success = The Cargo index was successfully rebuilt.
38013801
owner.settings.cargo.rebuild.no_index = Cannot rebuild, no index is initialized.
38023802
owner.settings.cleanuprules.title = Cleanup rules
38033803
owner.settings.cleanuprules.add = Add cleanup rule

options/locale_next/locale_en-US.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"editor.textarea.tab_hint": "Line already indented. Press <kbd>Tab</kbd> again or <kbd>Escape</kbd> to leave the editor.",
104104
"editor.textarea.shift_tab_hint": "No indentation on this line. Press <kbd>Shift</kbd> + <kbd>Tab</kbd> again or <kbd>Escape</kbd> to leave the editor.",
105105
"admin.dashboard.cleanup_offline_runners": "Cleanup offline runners",
106-
"settings.visibility.description": "Profile visibility affects others' ability to access your non-private repositories. <a href=\"%s\" target=\"_blank\">Learn more</a>",
106+
"settings.visibility.description": "Profile visibility affects others' ability to access your non-private repositories. <a href=\"%s\" target=\"_blank\">Learn more</a>.",
107107
"avatar.constraints_hint": "Custom avatar may not exceed %[1]s in size or be larger than %[2]dx%[3]d pixels",
108108
"og.repo.summary_card.alt_description": "Summary card of repository %[1]s, described as: %[2]s",
109109
"meta.last_line": "Thank you for translating Forgejo! This line isn't seen by the users but it serves other purposes in the translation management. You can place a fun fact in the translation instead of translating it."

tests/integration/api_packages_cargo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ func TestRebuildCargo(t *testing.T) {
441441

442442
flashCookie := session.GetCookie(gitea_context.CookieNameFlash)
443443
assert.NotNil(t, flashCookie)
444-
assert.Equal(t, "success%3DThe%2BCargo%2Bindex%2Bwas%2Bsuccessfully%2Brebuild.", flashCookie.Value)
444+
assert.Equal(t, "success%3DThe%2BCargo%2Bindex%2Bwas%2Bsuccessfully%2Brebuilt.", flashCookie.Value)
445445
})
446446
})
447447
}

0 commit comments

Comments
 (0)