diff options
author | Gusted <williamzijl7@hotmail.com> | 2022-06-27 22:58:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 15:58:46 -0500 |
commit | d55a0b723809f5b94acd948b924c8518014445e0 (patch) | |
tree | 0ef9ea54f30769ca1d16ce20e551bd7a078f7f5e /templates/org/team/repositories.tmpl | |
parent | b551bc2a089d3310dde5706d1b9702f112fe3ea0 (diff) | |
download | gitea-d55a0b723809f5b94acd948b924c8518014445e0.tar.gz gitea-d55a0b723809f5b94acd948b924c8518014445e0.zip |
Refactor `i18n` to `locale` (#20153)
* Refactor `i18n` to `locale`
- Currently we're using the `i18n` variable naming for the `locale`
struct. This contains locale's specific information and cannot be used
for general i18n purpose, therefore refactoring it to `locale` makes
more sense.
- Ref: https://github.com/go-gitea/gitea/pull/20096#discussion_r906699200
* Update routers/install/install.go
Diffstat (limited to 'templates/org/team/repositories.tmpl')
-rw-r--r-- | templates/org/team/repositories.tmpl | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl index ae747ef2cc..d4c17d5b00 100644 --- a/templates/org/team/repositories.tmpl +++ b/templates/org/team/repositories.tmpl @@ -16,17 +16,17 @@ <div class="inline field ui left"> <div id="search-repo-box" data-uid="{{.Org.ID}}" class="ui search"> <div class="ui input"> - <input class="prompt" name="repo_name" placeholder="{{.i18n.Tr "org.teams.search_repo_placeholder"}}" autocomplete="off" required> + <input class="prompt" name="repo_name" placeholder="{{.locale.Tr "org.teams.search_repo_placeholder"}}" autocomplete="off" required> </div> </div> </div> - <button class="ui green button">{{.i18n.Tr "add"}}</button> + <button class="ui green button">{{.locale.Tr "add"}}</button> </form> </div> <div class="inline ui field right"> <form class="ui form" id="repo-multiple-form" action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/repositories" method="post"> - <button class="ui red button delete-button right" data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/removeall">{{.i18n.Tr "remove_all"}}</button> - <button class="ui green button add-all-button right" data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/addall">{{.i18n.Tr "add_all"}}</button> + <button class="ui red button delete-button right" data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/removeall">{{.locale.Tr "remove_all"}}</button> + <button class="ui green button add-all-button right" data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/addall">{{.locale.Tr "add_all"}}</button> </form> </div> </div> @@ -37,7 +37,7 @@ {{if $canAddRemove}} <form method="post" action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/remove"> {{$.CsrfTokenHtml}} - <button type="submit" class="ui red small button right" name="repoid" value="{{.ID}}">{{$.i18n.Tr "remove"}}</button> + <button type="submit" class="ui red small button right" name="repoid" value="{{.ID}}">{{$.locale.Tr "remove"}}</button> </form> {{end}} <a class="member" href="{{$.Org.HomeLink}}/{{.Name | PathEscape}}"> @@ -55,7 +55,7 @@ </div> {{else}} <div class="item"> - <span class="text grey italic">{{$.i18n.Tr "org.teams.repos.none"}}</span> + <span class="text grey italic">{{$.locale.Tr "org.teams.repos.none"}}</span> </div> {{end}} </div> @@ -67,10 +67,10 @@ <div class="ui small basic delete modal"> <div class="ui icon header"> {{svg "octicon-trash"}} - {{.i18n.Tr "org.teams.remove_all_repos_title"}} + {{.locale.Tr "org.teams.remove_all_repos_title"}} </div> <div class="content"> - <p>{{.i18n.Tr "org.teams.remove_all_repos_desc"}}</p> + <p>{{.locale.Tr "org.teams.remove_all_repos_desc"}}</p> </div> {{template "base/delete_modal_actions" .}} </div> @@ -78,10 +78,10 @@ <div class="ui small basic addall modal"> <div class="ui icon header"> <i class="globe icon"></i> - {{.i18n.Tr "org.teams.add_all_repos_title"}} + {{.locale.Tr "org.teams.add_all_repos_title"}} </div> <div class="content"> - <p>{{.i18n.Tr "org.teams.add_all_repos_desc"}}</p> + <p>{{.locale.Tr "org.teams.add_all_repos_desc"}}</p> </div> {{template "base/delete_modal_actions" .}} </div> |