From 3b236337216f19a8ec58d27aada576e4762f8d68 Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Sat, 6 Apr 2024 23:06:39 +0500 Subject: [PATCH] [I18N] Improve English locale - user settings/profile: renamed Description fild of biography to Biography --- options/locale/locale_en-US.ini | 30 +++++++++++++++++----------- routers/web/user/setting/profile.go | 2 +- services/forms/user_form.go | 2 +- templates/user/settings/profile.tmpl | 6 +++--- 4 files changed, 23 insertions(+), 17 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 95643bbf7e..8c221e4c6b 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -64,7 +64,6 @@ new_org = New organization new_project = New project new_project_column = New column admin_panel = Site administration -account_settings = Account settings settings = Settings your_profile = Profile your_starred = Starred @@ -171,7 +170,7 @@ org_kind = Search orgs... team_kind = Search teams... code_kind = Search code... code_search_unavailable = Code search is currently not available. Please contact the site administrator. -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. +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. package_kind = Search packages... project_kind = Search projects... branch_kind = Search branches... @@ -546,6 +545,12 @@ modify = Update [form] UserName = Username +FullName = Full name +Description = Description +Pronouns = Pronouns +Biography = Biography +Website = Website +Location = Location RepoName = Repository name Email = Email address Password = Password @@ -556,6 +561,7 @@ PayloadUrl = Payload URL TeamName = Team name AuthName = Authorization name AdminEmail = Admin email +To = Branch name NewBranchName = New branch name CommitSummary = Commit summary @@ -2138,7 +2144,7 @@ settings.sync_mirror = Synchronize now settings.pull_mirror_sync_in_progress = Pulling changes from the remote %s at the moment. settings.push_mirror_sync_in_progress = Pushing changes to the remote %s at the moment. settings.site = Website -settings.update_settings = Update settings +settings.update_settings = Save settings settings.update_mirror_settings = Update mirror settings settings.branches.switch_default_branch = Switch default branch settings.branches.update_default_branch = Update default branch @@ -2417,7 +2423,7 @@ settings.protected_branch.delete_rule = Delete rule settings.protected_branch_can_push = Allow push? settings.protected_branch_can_push_yes = You can push settings.protected_branch_can_push_no = You cannot push -settings.branch_protection = Branch protection rules for branch "%s" +settings.branch_protection = Protection rules for branch "%s" settings.protect_this_branch = Enable branch protection settings.protect_this_branch_desc = Prevents deletion and restricts Git pushing and merging to the branch. settings.protect_disable_push = Disable push @@ -2991,7 +2997,7 @@ users.delete_account = Delete user account users.cannot_delete_self = You cannot delete yourself users.still_own_repo = This user still owns one or more repositories. Delete or transfer these repositories first. users.still_has_org = This user is a member of an organization. Remove the user from any organizations first. -users.purge = Purge User +users.purge = Purge user 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. users.still_own_packages = This user still owns one or more packages, delete these packages first. users.deletion_success = The user account has been deleted. @@ -3001,14 +3007,14 @@ users.list_status_filter.reset = Reset users.list_status_filter.is_active = Active users.list_status_filter.not_active = Inactive users.list_status_filter.is_admin = Admin -users.list_status_filter.not_admin = Not Admin +users.list_status_filter.not_admin = Not admin users.list_status_filter.is_restricted = Restricted -users.list_status_filter.not_restricted = Not Restricted -users.list_status_filter.is_prohibit_login = Prohibit Login -users.list_status_filter.not_prohibit_login = Allow Login -users.list_status_filter.is_2fa_enabled = 2FA Enabled -users.list_status_filter.not_2fa_enabled = 2FA Disabled -users.details = User Details +users.list_status_filter.not_restricted = Not restricted +users.list_status_filter.is_prohibit_login = Prohibit login +users.list_status_filter.not_prohibit_login = Allow login +users.list_status_filter.is_2fa_enabled = 2FA enabled +users.list_status_filter.not_2fa_enabled = 2FA disabled +users.details = User details emails.email_manage_panel = Manage user emails emails.primary = Primary diff --git a/routers/web/user/setting/profile.go b/routers/web/user/setting/profile.go index a39c118ddd..907f0f5061 100644 --- a/routers/web/user/setting/profile.go +++ b/routers/web/user/setting/profile.go @@ -95,7 +95,7 @@ func ProfilePost(ctx *context.Context) { opts := &user_service.UpdateOptions{ FullName: optional.Some(form.FullName), KeepEmailPrivate: optional.Some(form.KeepEmailPrivate), - Description: optional.Some(form.Description), + Description: optional.Some(form.Biography), Pronouns: optional.Some(form.Pronouns), Website: optional.Some(form.Website), Location: optional.Some(form.Location), diff --git a/services/forms/user_form.go b/services/forms/user_form.go index 196b092990..4e603a3115 100644 --- a/services/forms/user_form.go +++ b/services/forms/user_form.go @@ -219,7 +219,7 @@ type UpdateProfileForm struct { Website string `binding:"ValidSiteUrl;MaxSize(255)"` Location string `binding:"MaxSize(50)"` Pronouns string `binding:"MaxSize(50)"` - Description string `binding:"MaxSize(255)"` + Biography string `binding:"MaxSize(255)"` Visibility structs.VisibleType KeepActivityPrivate bool } diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl index e596fa3496..99835ae907 100644 --- a/templates/user/settings/profile.tmpl +++ b/templates/user/settings/profile.tmpl @@ -55,9 +55,9 @@

{{.SignedUser.Email}}

-
- - +
+ +