Skip to content

Commit 866ce12

Browse files
L0veSunshinezeripathlunny
authored
Split some words from template to improve translation. (#11221)
* split some words from template * split some words from template * add " " to mustache expression * split some words from template Co-authored-by: zeripath <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
1 parent 791353c commit 866ce12

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

options/locale/locale_en-US.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,8 +1386,13 @@ settings.search_user_placeholder = Search user…
13861386
settings.org_not_allowed_to_be_collaborator = Organizations cannot be added as a collaborator.
13871387
settings.change_team_access_not_allowed = Changing team access for repository has been restricted to organization owner
13881388
settings.team_not_in_organization = The team is not in the same organization as the repository
1389+
settings.teams = Teams
1390+
settings.add_team = Add Team
13891391
settings.add_team_duplicate = Team already has the repository
13901392
settings.add_team_success = The team now have access to the repository.
1393+
settings.search_team = Search Team…
1394+
settings.change_team_permission_tip = Team's permission is set on the team setting page and can't be changed per repository
1395+
settings.delete_team_tip = This team has access to all repositories and can't be removed
13911396
settings.remove_team_success = The team's access to the repository has been removed.
13921397
settings.add_webhook = Add Webhook
13931398
settings.add_webhook.invalid_channel_name = Webhook channel name cannot be empty and cannot contain only a # character.

templates/repo/settings/collaboration.tmpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
{{if .RepoOwnerIsOrganization}}
5656
<h4 class="ui top attached header">
57-
Teams
57+
{{$.i18n.Tr "repo.settings.teams"}}
5858
</h4>
5959
{{ $allowedToChangeTeams := ( or (.Org.RepoAdminChangeTeamAccess) (.Permission.IsOwner)) }}
6060
{{if .Teams}}
@@ -66,7 +66,7 @@
6666
{{.Name}}
6767
</a>
6868
</div>
69-
<div class="ui eight wide column poping up" data-content="Team's permission is set on the team setting page and can't be changed per repository">
69+
<div class="ui eight wide column poping up" data-content="{{$.i18n.Tr "repo.settings.change_team_permission_tip"}}">
7070
{{svg "octicon-shield-lock" 16}}
7171
<div class="ui inline dropdown">
7272
<div class="text">{{if eq .Authorize 1}}{{$.i18n.Tr "repo.settings.collaboration.read"}}{{else if eq .Authorize 2}}{{$.i18n.Tr "repo.settings.collaboration.write"}}{{else if eq .Authorize 3}}{{$.i18n.Tr "repo.settings.collaboration.admin"}}{{else if eq .Authorize 4}}{{$.i18n.Tr "repo.settings.collaboration.owner"}}{{else}}{{$.i18n.Tr "repo.settings.collaboration.undefined"}}{{end}}</div>
@@ -79,7 +79,7 @@
7979
{{end}}
8080
</div>
8181
{{if $allowedToChangeTeams}}
82-
<div class="ui two wide column {{if .IncludesAllRepositories}}poping up{{end}}" {{if .IncludesAllRepositories}}data-content="This team has access to all repositories and can't be removed."{{end}}>
82+
<div class="ui two wide column {{if .IncludesAllRepositories}}poping up{{end}}" {{if .IncludesAllRepositories}} data-content="{{$.i18n.Tr "repo.settings.delete_team_tip"}}"{{end}}>
8383
<button class="ui red tiny button inline text-thin delete-button {{if .IncludesAllRepositories}}disabled{{end}}" data-url="{{$.Link}}/team/delete" data-id="{{.ID}}">
8484
{{$.i18n.Tr "repo.settings.delete_collaborator"}}
8585
</button>
@@ -96,15 +96,15 @@
9696
<div class="inline field ui left">
9797
<div id="search-team-box" class="ui search" data-org="{{.OrgName}}">
9898
<div class="ui input">
99-
<input class="prompt" name="team" placeholder="Search teams..." autocomplete="off" autofocus required>
99+
<input class="prompt" name="team" placeholder="{{$.i18n.Tr "repo.settings.search_team"}}" autocomplete="off" autofocus required>
100100
</div>
101101
</div>
102102
</div>
103-
<button class="ui green button">Add Team</button>
103+
<button class="ui green button">{{$.i18n.Tr "repo.settings.add_team"}}</button>
104104
</form>
105105
{{else}}
106106
<div class="item">
107-
Changing team access for repository has been restricted to organization owner
107+
{{$.i18n.Tr "repo.settings.change_team_access_not_allowed"}}
108108
</div>
109109
{{end}}
110110
</div>

0 commit comments

Comments
 (0)