From 8aa94c4011b8b422604f9c497e287280ece4f895 Mon Sep 17 00:00:00 2001
From: yp05327 <576951401@qq.com>
Date: Mon, 30 Jan 2023 14:32:02 +0900
Subject: [PATCH 1/3] add team unit helper
---
options/locale/locale_en-US.ini | 1 +
options/locale/locale_ja-JP.ini | 1 +
options/locale/locale_zh-CN.ini | 1 +
templates/org/team/new.tmpl | 1 +
4 files changed, 4 insertions(+)
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 74ba85ca90161..761450ba08fb0 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -2371,6 +2371,7 @@ team_desc_helper = Describe the purpose or role of the team.
team_access_desc = Repository access
team_permission_desc = Permission
team_unit_desc = Allow Access to Repository Sections
+team_unit_helper = The following access control policy has no effect on the public repositories in this organization.
team_unit_disabled = (Disabled)
form.name_reserved = The organization name '%s' is reserved.
diff --git a/options/locale/locale_ja-JP.ini b/options/locale/locale_ja-JP.ini
index abb58a4f2576c..1f9af7979c720 100644
--- a/options/locale/locale_ja-JP.ini
+++ b/options/locale/locale_ja-JP.ini
@@ -2338,6 +2338,7 @@ team_desc_helper=チームの目的や役割を説明します。
team_access_desc=リポジトリアクセス
team_permission_desc=権限
team_unit_desc=リポジトリのセクションへのアクセスを許可
+team_unit_helper=以下のアクセス制御ポリシーは公開リポジトリに対して効果しないです。
team_unit_disabled=(無効)
form.name_reserved=組織名 '%s' は予約されています。
diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini
index ee6f686a85795..a2d7294cf85b7 100644
--- a/options/locale/locale_zh-CN.ini
+++ b/options/locale/locale_zh-CN.ini
@@ -2340,6 +2340,7 @@ team_desc_helper=描述团队的目的或作用。
team_access_desc=仓库权限
team_permission_desc=权限
team_unit_desc=允许访问仓库单元
+team_unit_helper=下列访问控制策略对该组织中的公开库无效
team_unit_disabled=(已禁用)
form.name_reserved=组织名称 '%s' 是被保留的。
diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl
index 10b5abda31457..2ec323961c821 100644
--- a/templates/org/team/new.tmpl
+++ b/templates/org/team/new.tmpl
@@ -73,6 +73,7 @@
+ {{.locale.Tr "org.team_unit_helper"}}
From 4cd12b31f10ba375dfc1d754b9634247d48ae3a5 Mon Sep 17 00:00:00 2001
From: yp05327 <576951401@qq.com>
Date: Mon, 30 Jan 2023 21:28:16 +0900
Subject: [PATCH 2/3] remove team unit helper
---
options/locale/locale_en-US.ini | 1 -
options/locale/locale_ja-JP.ini | 1 -
options/locale/locale_zh-CN.ini | 1 -
templates/org/team/new.tmpl | 1 -
4 files changed, 4 deletions(-)
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 761450ba08fb0..74ba85ca90161 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -2371,7 +2371,6 @@ team_desc_helper = Describe the purpose or role of the team.
team_access_desc = Repository access
team_permission_desc = Permission
team_unit_desc = Allow Access to Repository Sections
-team_unit_helper = The following access control policy has no effect on the public repositories in this organization.
team_unit_disabled = (Disabled)
form.name_reserved = The organization name '%s' is reserved.
diff --git a/options/locale/locale_ja-JP.ini b/options/locale/locale_ja-JP.ini
index 1f9af7979c720..abb58a4f2576c 100644
--- a/options/locale/locale_ja-JP.ini
+++ b/options/locale/locale_ja-JP.ini
@@ -2338,7 +2338,6 @@ team_desc_helper=チームの目的や役割を説明します。
team_access_desc=リポジトリアクセス
team_permission_desc=権限
team_unit_desc=リポジトリのセクションへのアクセスを許可
-team_unit_helper=以下のアクセス制御ポリシーは公開リポジトリに対して効果しないです。
team_unit_disabled=(無効)
form.name_reserved=組織名 '%s' は予約されています。
diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini
index a2d7294cf85b7..ee6f686a85795 100644
--- a/options/locale/locale_zh-CN.ini
+++ b/options/locale/locale_zh-CN.ini
@@ -2340,7 +2340,6 @@ team_desc_helper=描述团队的目的或作用。
team_access_desc=仓库权限
team_permission_desc=权限
team_unit_desc=允许访问仓库单元
-team_unit_helper=下列访问控制策略对该组织中的公开库无效
team_unit_disabled=(已禁用)
form.name_reserved=组织名称 '%s' 是被保留的。
diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl
index 2ec323961c821..10b5abda31457 100644
--- a/templates/org/team/new.tmpl
+++ b/templates/org/team/new.tmpl
@@ -73,7 +73,6 @@
- {{.locale.Tr "org.team_unit_helper"}}
From 6d746c67664ff01bba09a9dd1e7f8df11554d85b Mon Sep 17 00:00:00 2001
From: yp05327 <576951401@qq.com>
Date: Mon, 30 Jan 2023 21:29:08 +0900
Subject: [PATCH 3/3] add tip to team none access helper
---
options/locale/locale_en-US.ini | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 74ba85ca90161..96bf7c149a329 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -2427,7 +2427,7 @@ teams.leave.detail = Leave %s?
teams.can_create_org_repo = Create repositories
teams.can_create_org_repo_helper = Members can create new repositories in organization. Creator will get administrator access to the new repository.
teams.none_access = No Access
-teams.none_access_helper = Members cannot view or do any other action on this unit.
+teams.none_access_helper = Members cannot view or do any other action on this unit. It has no effect for public repositories.
teams.general_access = General Access
teams.general_access_helper = Members permissions will be decided by below permission table.
teams.read_access = Read