diff options
author | L0veSunshine <xuan199651@gmail.com> | 2020-05-08 20:39:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-08 13:39:17 +0100 |
commit | 866ce126ecce2f28f4fc25648cf4bd74679c00cc (patch) | |
tree | 97a1bb916180e28219981cffb4d487588679fafb | |
parent | 791353c03ba81d1c67393a04256a77293307ecad (diff) | |
download | gitea-866ce126ecce2f28f4fc25648cf4bd74679c00cc.tar.gz gitea-866ce126ecce2f28f4fc25648cf4bd74679c00cc.zip |
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 <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
-rw-r--r-- | options/locale/locale_en-US.ini | 5 | ||||
-rw-r--r-- | templates/repo/settings/collaboration.tmpl | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 6c98497209..4d01a6be96 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1386,8 +1386,13 @@ settings.search_user_placeholder = Search user… settings.org_not_allowed_to_be_collaborator = Organizations cannot be added as a collaborator. settings.change_team_access_not_allowed = Changing team access for repository has been restricted to organization owner settings.team_not_in_organization = The team is not in the same organization as the repository +settings.teams = Teams +settings.add_team = Add Team settings.add_team_duplicate = Team already has the repository settings.add_team_success = The team now have access to the repository. +settings.search_team = Search Team… +settings.change_team_permission_tip = Team's permission is set on the team setting page and can't be changed per repository +settings.delete_team_tip = This team has access to all repositories and can't be removed settings.remove_team_success = The team's access to the repository has been removed. settings.add_webhook = Add Webhook settings.add_webhook.invalid_channel_name = Webhook channel name cannot be empty and cannot contain only a # character. diff --git a/templates/repo/settings/collaboration.tmpl b/templates/repo/settings/collaboration.tmpl index 8c6e6461ad..082aebff73 100644 --- a/templates/repo/settings/collaboration.tmpl +++ b/templates/repo/settings/collaboration.tmpl @@ -54,7 +54,7 @@ {{if .RepoOwnerIsOrganization}} <h4 class="ui top attached header"> - Teams + {{$.i18n.Tr "repo.settings.teams"}} </h4> {{ $allowedToChangeTeams := ( or (.Org.RepoAdminChangeTeamAccess) (.Permission.IsOwner)) }} {{if .Teams}} @@ -66,7 +66,7 @@ {{.Name}} </a> </div> - <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"> + <div class="ui eight wide column poping up" data-content="{{$.i18n.Tr "repo.settings.change_team_permission_tip"}}"> {{svg "octicon-shield-lock" 16}} <div class="ui inline dropdown"> <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 @@ {{end}} </div> {{if $allowedToChangeTeams}} - <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}}> + <div class="ui two wide column {{if .IncludesAllRepositories}}poping up{{end}}" {{if .IncludesAllRepositories}} data-content="{{$.i18n.Tr "repo.settings.delete_team_tip"}}"{{end}}> <button class="ui red tiny button inline text-thin delete-button {{if .IncludesAllRepositories}}disabled{{end}}" data-url="{{$.Link}}/team/delete" data-id="{{.ID}}"> {{$.i18n.Tr "repo.settings.delete_collaborator"}} </button> @@ -96,15 +96,15 @@ <div class="inline field ui left"> <div id="search-team-box" class="ui search" data-org="{{.OrgName}}"> <div class="ui input"> - <input class="prompt" name="team" placeholder="Search teams..." autocomplete="off" autofocus required> + <input class="prompt" name="team" placeholder="{{$.i18n.Tr "repo.settings.search_team"}}" autocomplete="off" autofocus required> </div> </div> </div> - <button class="ui green button">Add Team</button> + <button class="ui green button">{{$.i18n.Tr "repo.settings.add_team"}}</button> </form> {{else}} <div class="item"> - Changing team access for repository has been restricted to organization owner + {{$.i18n.Tr "repo.settings.change_team_access_not_allowed"}} </div> {{end}} </div> |