Skip to content

Commit 2a5375c

Browse files
committed
Merge branch 'main' into feat/admin-cli
2 parents 6f5c97c + 6ed1b26 commit 2a5375c

File tree

17 files changed

+110
-104
lines changed

17 files changed

+110
-104
lines changed

models/asymkey/ssh_key_commit_verification.go

Lines changed: 0 additions & 79 deletions
This file was deleted.

models/user/avatar.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ func GenerateRandomAvatar(ctx context.Context, u *User) error {
6161

6262
// AvatarLinkWithSize returns a link to the user's avatar with size. size <= 0 means default size
6363
func (u *User) AvatarLinkWithSize(ctx context.Context, size int) string {
64-
if u.IsGhost() || u.IsGiteaActions() {
64+
// ghost user was deleted, Gitea actions is a bot user, 0 means the user should be a virtual user
65+
// which comes from git configure information
66+
if u.IsGhost() || u.IsGiteaActions() || u.ID <= 0 {
6567
return avatars.DefaultAvatarLink()
6668
}
6769

options/locale/locale_cs-CZ.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,6 @@ public_profile=Veřejný profil
718718
biography_placeholder=Řekněte nám něco o sobě! (Můžete použít Markdown)
719719
location_placeholder=Sdílejte svou přibližnou polohu s ostatními
720720
profile_desc=Nastavte, jak bude váš profil zobrazen ostatním uživatelům. Vaše hlavní e-mailová adresa bude použita pro oznámení, obnovení hesla a operace Git.
721-
password_username_disabled=Nemáte oprávnění měnit jejich uživatelské jméno. Pro více informací kontaktujte svého administrátora.
722-
password_full_name_disabled=Nemáte oprávnění měnit jejich celé jméno. Pro více informací kontaktujte správce webu.
723721
full_name=Celé jméno
724722
website=Web
725723
location=Místo

options/locale/locale_de-DE.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,6 @@ public_profile=Öffentliches Profil
724724
biography_placeholder=Erzähle uns ein wenig über Dich selbst! (Du kannst Markdown verwenden)
725725
location_placeholder=Teile Deinen ungefähren Standort mit anderen
726726
profile_desc=Lege fest, wie dein Profil anderen Benutzern angezeigt wird. Deine primäre E-Mail-Adresse wird für Benachrichtigungen, Passwort-Wiederherstellung und webbasierte Git-Operationen verwendet.
727-
password_username_disabled=Du bist nicht berechtigt, den Benutzernamen zu ändern. Bitte kontaktiere Deinen Seitenadministrator für weitere Details.
728-
password_full_name_disabled=Du bist nicht berechtigt, den vollständigen Namen zu ändern. Bitte kontaktiere Deinen Seitenadministrator für weitere Details.
729727
full_name=Vollständiger Name
730728
website=Webseite
731729
location=Standort

options/locale/locale_en-US.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,8 @@ public_profile = Public Profile
730730
biography_placeholder = Tell us a little bit about yourself! (You can use Markdown)
731731
location_placeholder = Share your approximate location with others
732732
profile_desc = Control how your profile is show to other users. Your primary email address will be used for notifications, password recovery and web-based Git operations.
733-
password_username_disabled = You are not allowed to change their username. Please contact your site administrator for more details.
734-
password_full_name_disabled = You are not allowed to change their full name. Please contact your site administrator for more details.
733+
password_username_disabled = You are not allowed to change your username. Please contact your site administrator for more details.
734+
password_full_name_disabled = You are not allowed to change your full name. Please contact your site administrator for more details.
735735
full_name = Full Name
736736
website = Website
737737
location = Location
@@ -2733,6 +2733,7 @@ branch.restore_success = Branch "%s" has been restored.
27332733
branch.restore_failed = Failed to restore branch "%s".
27342734
branch.protected_deletion_failed = Branch "%s" is protected. It cannot be deleted.
27352735
branch.default_deletion_failed = Branch "%s" is the default branch. It cannot be deleted.
2736+
branch.default_branch_not_exist = Default branch "%s" does not exist.
27362737
branch.restore = Restore Branch "%s"
27372738
branch.download = Download Branch "%s"
27382739
branch.rename = Rename Branch "%s"

options/locale/locale_fr-FR.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,6 @@ public_profile=Profil public
730730
biography_placeholder=Parlez-nous un peu de vous ! (Vous pouvez utiliser Markdown)
731731
location_placeholder=Partagez votre position approximative avec d'autres personnes
732732
profile_desc=Contrôlez comment votre profil est affiché aux autres utilisateurs. Votre adresse courriel principale sera utilisée pour les notifications, la récupération de mot de passe et les opérations Git basées sur le Web.
733-
password_username_disabled=Vous n’êtes pas autorisé à modifier leur nom d’utilisateur. Veuillez contacter l’administrateur de votre site pour plus de détails.
734-
password_full_name_disabled=Vous n’êtes pas autorisé à modifier leur nom complet. Veuillez contacter l’administrateur du site pour plus de détails.
735733
full_name=Nom complet
736734
website=Site Web
737735
location=Localisation
@@ -1546,6 +1544,8 @@ issues.filter_project=Projet
15461544
issues.filter_project_all=Tous les projets
15471545
issues.filter_project_none=Aucun projet
15481546
issues.filter_assignee=Assigné
1547+
issues.filter_assignee_no_assignee=Non-assigné
1548+
issues.filter_assignee_any_assignee=Assigné
15491549
issues.filter_poster=Auteur
15501550
issues.filter_user_placeholder=Rechercher des utilisateurs
15511551
issues.filter_user_no_select=Tous les utilisateurs

options/locale/locale_ga-IE.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,6 @@ public_profile=Próifíl Phoiblí
730730
biography_placeholder=Inis dúinn beagán fút féin! (Is féidir leat Markdown a úsáid)
731731
location_placeholder=Comhroinn do shuíomh thart le daoine eile
732732
profile_desc=Rialú conas a thaispeánfar do phróifíl d'úsáideoirí eile. Úsáidfear do phríomhsheoladh ríomhphoist le haghaidh fógraí, aisghabháil pasfhocail agus oibríochtaí Git gréasán-bhunaithe.
733-
password_username_disabled=Níl cead agat a n-ainm úsáideora a athrú. Déan teagmháil le do riarthóir suímh le haghaidh tuilleadh sonraí.
734-
password_full_name_disabled=Níl cead agat a n-ainm iomlán a athrú. Déan teagmháil le do riarthóir suímh le haghaidh tuilleadh sonraí.
735733
full_name=Ainm Iomlán
736734
website=Láithreán Gréasáin
737735
location=Suíomh

options/locale/locale_ja-JP.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,6 @@ public_profile=公開プロフィール
730730
biography_placeholder=自己紹介してください!(Markdownを使うことができます)
731731
location_placeholder=おおよその場所を他の人と共有
732732
profile_desc=あなたのプロフィールが他のユーザーにどのように表示されるかを制御します。あなたのプライマリメールアドレスは、通知、パスワードの回復、WebベースのGit操作に使用されます。
733-
password_username_disabled=ユーザー名の変更は許可されていません。詳細はサイト管理者にお問い合わせください。
734-
password_full_name_disabled=フルネームの変更は許可されていません。詳細はサイト管理者にお問い合わせください。
735733
full_name=フルネーム
736734
website=Webサイト
737735
location=場所

options/locale/locale_pt-PT.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,6 @@ public_profile=Perfil público
730730
biography_placeholder=Conte-nos um pouco sobre si! (Pode usar Markdown)
731731
location_placeholder=Partilhe a sua localização aproximada com outros
732732
profile_desc=Controle como o seu perfil é apresentado aos outros utilizadores. O seu endereço de email principal será usado para notificações, recuperação de senha e operações Git baseadas na web.
733-
password_username_disabled=Não tem permissão para alterar os nomes de utilizador deles/delas. Entre em contacto com o administrador para saber mais detalhes.
734-
password_full_name_disabled=Não tem permissão para alterar o nome completo deles/delas. Entre em contacto com o administrador para saber mais detalhes.
735733
full_name=Nome completo
736734
website=Sítio web
737735
location=Localização
@@ -1550,6 +1548,7 @@ issues.filter_project=Planeamento
15501548
issues.filter_project_all=Todos os planeamentos
15511549
issues.filter_project_none=Nenhum planeamento
15521550
issues.filter_assignee=Encarregado
1551+
issues.filter_assignee_no_assignee=Não atribuído
15531552
issues.filter_assignee_any_assignee=Atribuído a qualquer pessoa
15541553
issues.filter_poster=Autor(a)
15551554
issues.filter_user_placeholder=Procurar utilizadores

options/locale/locale_zh-CN.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,6 @@ public_profile=公开信息
718718
biography_placeholder=告诉我们一点您自己! (您可以使用Markdown)
719719
location_placeholder=与他人分享你的大概位置
720720
profile_desc=控制您的个人资料对其他用户的显示方式。您的主要电子邮件地址将用于通知、密码恢复和基于网页界面的 Git 操作
721-
password_username_disabled=不允许非本地用户更改他们的用户名。更多详情请联系您的系统管理员。
722-
password_full_name_disabled=您无权更改他们的全名。请联系您的站点管理员了解更多详情。
723721
full_name=自定义名称
724722
website=个人网站
725723
location=所在地区

0 commit comments

Comments
 (0)