Skip to content

Commit ceba1ab

Browse files
author
0ko
committed
Merge pull request 'Improve English locale' (#2941) from 0ko/forgejo:english20240401 into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2941 Reviewed-by: Otto <[email protected]>
2 parents 3d2fa49 + 3b23633 commit ceba1ab

File tree

4 files changed

+23
-17
lines changed

4 files changed

+23
-17
lines changed

options/locale/locale_en-US.ini

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ new_org = New organization
6464
new_project = New project
6565
new_project_column = New column
6666
admin_panel = Site administration
67-
account_settings = Account settings
6867
settings = Settings
6968
your_profile = Profile
7069
your_starred = Starred
@@ -171,7 +170,7 @@ org_kind = Search orgs...
171170
team_kind = Search teams...
172171
code_kind = Search code...
173172
code_search_unavailable = Code search is currently not available. Please contact the site administrator.
174-
code_search_by_git_grep = Current code search results are provided by "git grep". There might be better results if site administrator enables Repository Indexer.
173+
code_search_by_git_grep = Current code search results are provided by "git grep". There might be better results if site administrator enables code indexer.
175174
package_kind = Search packages...
176175
project_kind = Search projects...
177176
branch_kind = Search branches...
@@ -545,6 +544,12 @@ modify = Update
545544
546545
[form]
547546
UserName = Username
547+
FullName = Full name
548+
Description = Description
549+
Pronouns = Pronouns
550+
Biography = Biography
551+
Website = Website
552+
Location = Location
548553
RepoName = Repository name
549554
Email = Email address
550555
Password = Password
@@ -555,6 +560,7 @@ PayloadUrl = Payload URL
555560
TeamName = Team name
556561
AuthName = Authorization name
557562
AdminEmail = Admin email
563+
To = Branch name
558564
559565
NewBranchName = New branch name
560566
CommitSummary = Commit summary
@@ -2137,7 +2143,7 @@ settings.sync_mirror = Synchronize now
21372143
settings.pull_mirror_sync_in_progress = Pulling changes from the remote %s at the moment.
21382144
settings.push_mirror_sync_in_progress = Pushing changes to the remote %s at the moment.
21392145
settings.site = Website
2140-
settings.update_settings = Update settings
2146+
settings.update_settings = Save settings
21412147
settings.update_mirror_settings = Update mirror settings
21422148
settings.branches.switch_default_branch = Switch default branch
21432149
settings.branches.update_default_branch = Update default branch
@@ -2416,7 +2422,7 @@ settings.protected_branch.delete_rule = Delete rule
24162422
settings.protected_branch_can_push = Allow push?
24172423
settings.protected_branch_can_push_yes = You can push
24182424
settings.protected_branch_can_push_no = You cannot push
2419-
settings.branch_protection = Branch protection rules for branch "<b>%s</b>"
2425+
settings.branch_protection = Protection rules for branch "<b>%s</b>"
24202426
settings.protect_this_branch = Enable branch protection
24212427
settings.protect_this_branch_desc = Prevents deletion and restricts Git pushing and merging to the branch.
24222428
settings.protect_disable_push = Disable push
@@ -2990,7 +2996,7 @@ users.delete_account = Delete user account
29902996
users.cannot_delete_self = You cannot delete yourself
29912997
users.still_own_repo = This user still owns one or more repositories. Delete or transfer these repositories first.
29922998
users.still_has_org = This user is a member of an organization. Remove the user from any organizations first.
2993-
users.purge = Purge User
2999+
users.purge = Purge user
29943000
users.purge_help = Forcibly delete user and any repositories, organizations, and packages owned by the user. All comments and issues posted by this user will also be deleted.
29953001
users.still_own_packages = This user still owns one or more packages, delete these packages first.
29963002
users.deletion_success = The user account has been deleted.
@@ -3000,14 +3006,14 @@ users.list_status_filter.reset = Reset
30003006
users.list_status_filter.is_active = Active
30013007
users.list_status_filter.not_active = Inactive
30023008
users.list_status_filter.is_admin = Admin
3003-
users.list_status_filter.not_admin = Not Admin
3009+
users.list_status_filter.not_admin = Not admin
30043010
users.list_status_filter.is_restricted = Restricted
3005-
users.list_status_filter.not_restricted = Not Restricted
3006-
users.list_status_filter.is_prohibit_login = Prohibit Login
3007-
users.list_status_filter.not_prohibit_login = Allow Login
3008-
users.list_status_filter.is_2fa_enabled = 2FA Enabled
3009-
users.list_status_filter.not_2fa_enabled = 2FA Disabled
3010-
users.details = User Details
3011+
users.list_status_filter.not_restricted = Not restricted
3012+
users.list_status_filter.is_prohibit_login = Prohibit login
3013+
users.list_status_filter.not_prohibit_login = Allow login
3014+
users.list_status_filter.is_2fa_enabled = 2FA enabled
3015+
users.list_status_filter.not_2fa_enabled = 2FA disabled
3016+
users.details = User details
30113017
30123018
emails.email_manage_panel = Manage user emails
30133019
emails.primary = Primary

routers/web/user/setting/profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func ProfilePost(ctx *context.Context) {
9595
opts := &user_service.UpdateOptions{
9696
FullName: optional.Some(form.FullName),
9797
KeepEmailPrivate: optional.Some(form.KeepEmailPrivate),
98-
Description: optional.Some(form.Description),
98+
Description: optional.Some(form.Biography),
9999
Pronouns: optional.Some(form.Pronouns),
100100
Website: optional.Some(form.Website),
101101
Location: optional.Some(form.Location),

services/forms/user_form.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ type UpdateProfileForm struct {
219219
Website string `binding:"ValidSiteUrl;MaxSize(255)"`
220220
Location string `binding:"MaxSize(50)"`
221221
Pronouns string `binding:"MaxSize(50)"`
222-
Description string `binding:"MaxSize(255)"`
222+
Biography string `binding:"MaxSize(255)"`
223223
Visibility structs.VisibleType
224224
KeepActivityPrivate bool
225225
}

templates/user/settings/profile.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
<label>{{ctx.Locale.Tr "email"}}</label>
5656
<p id="signed-user-email">{{.SignedUser.Email}}</p>
5757
</div>
58-
<div class="field {{if .Err_Description}}error{{end}}">
59-
<label for="description">{{ctx.Locale.Tr "user.user_bio"}}</label>
60-
<textarea id="description" name="description" rows="2" placeholder="{{ctx.Locale.Tr "settings.biography_placeholder"}}" maxlength="255">{{.SignedUser.Description}}</textarea>
58+
<div class="field {{if .Err_Biography}}error{{end}}">
59+
<label for="biography">{{ctx.Locale.Tr "user.user_bio"}}</label>
60+
<textarea id="biography" name="biography" rows="2" placeholder="{{ctx.Locale.Tr "settings.biography_placeholder"}}" maxlength="255">{{.SignedUser.Description}}</textarea>
6161
</div>
6262
<div class="field {{if .Err_Website}}error{{end}}">
6363
<label for="website">{{ctx.Locale.Tr "settings.website"}}</label>

0 commit comments

Comments
 (0)