aboutsummaryrefslogtreecommitdiffstats
path: root/templates/package/settings.tmpl
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-06-27 22:58:46 +0200
committerGitHub <noreply@github.com>2022-06-27 15:58:46 -0500
commitd55a0b723809f5b94acd948b924c8518014445e0 (patch)
tree0ef9ea54f30769ca1d16ce20e551bd7a078f7f5e /templates/package/settings.tmpl
parentb551bc2a089d3310dde5706d1b9702f112fe3ea0 (diff)
downloadgitea-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/package/settings.tmpl')
-rw-r--r--templates/package/settings.tmpl26
1 files changed, 13 insertions, 13 deletions
diff --git a/templates/package/settings.tmpl b/templates/package/settings.tmpl
index bf2d1d4912..5f045e98b0 100644
--- a/templates/package/settings.tmpl
+++ b/templates/package/settings.tmpl
@@ -3,12 +3,12 @@
{{template "user/overview/header" .}}
<div class="ui container">
{{template "base/alert" .}}
- <p><a href="{{.PackageDescriptor.FullWebLink}}">{{.PackageDescriptor.Package.Name}} ({{.PackageDescriptor.Version.Version}})</a> / <strong>{{.i18n.Tr "repo.settings"}}</strong></p>
+ <p><a href="{{.PackageDescriptor.FullWebLink}}">{{.PackageDescriptor.Package.Name}} ({{.PackageDescriptor.Version.Version}})</a> / <strong>{{.locale.Tr "repo.settings"}}</strong></p>
<h4 class="ui top attached header">
- {{.i18n.Tr "packages.settings.link"}}
+ {{.locale.Tr "packages.settings.link"}}
</h4>
<div class="ui attached segment">
- <p>{{.i18n.Tr "packages.settings.link.description"}}</p>
+ <p>{{.locale.Tr "packages.settings.link.description"}}</p>
<form class="ui form" action="{{.Link}}" method="post">
{{template "base/disable_form_autofill"}}
{{.CsrfTokenHtml}}
@@ -21,7 +21,7 @@
{{end}}
<input type="hidden" name="repo_id" value="{{$repoID}}">
<i class="dropdown icon"></i>
- <div class="default text">{{.i18n.Tr "packages.settings.link.select"}}</div>
+ <div class="default text">{{.locale.Tr "packages.settings.link.select"}}</div>
<div class="menu">
{{range .Repos}}
<div class="item" data-value="{{.ID}}">{{.Name}}</div>
@@ -30,36 +30,36 @@
</div>
</div>
<div class="field">
- <button class="ui green button">{{.i18n.Tr "packages.settings.link.button"}}</button>
+ <button class="ui green button">{{.locale.Tr "packages.settings.link.button"}}</button>
</div>
</form>
</div>
<h4 class="ui top attached error header">
- {{.i18n.Tr "repo.settings.danger_zone"}}
+ {{.locale.Tr "repo.settings.danger_zone"}}
</h4>
<div class="ui attached error table danger segment">
<div class="item">
<div class="ui right">
- <button class="ui basic red show-modal button" data-modal="#delete-package-modal">{{.i18n.Tr "packages.settings.delete"}}</button>
+ <button class="ui basic red show-modal button" data-modal="#delete-package-modal">{{.locale.Tr "packages.settings.delete"}}</button>
</div>
<div>
- <h5>{{.i18n.Tr "packages.settings.delete"}}</h5>
- <p>{{.i18n.Tr "packages.settings.delete.description"}}</p>
+ <h5>{{.locale.Tr "packages.settings.delete"}}</h5>
+ <p>{{.locale.Tr "packages.settings.delete.description"}}</p>
</div>
<div class="ui tiny modal" id="delete-package-modal">
<div class="header">
- {{.i18n.Tr "packages.settings.delete"}}
+ {{.locale.Tr "packages.settings.delete"}}
</div>
<div class="content">
<div class="ui warning message text left">
- {{.i18n.Tr "packages.settings.delete.notice" .PackageDescriptor.Package.Name .PackageDescriptor.Version.Version}}
+ {{.locale.Tr "packages.settings.delete.notice" .PackageDescriptor.Package.Name .PackageDescriptor.Version.Version}}
</div>
<form class="ui form" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}}
<input type="hidden" name="action" value="delete">
<div class="text right actions">
- <div class="ui cancel button">{{.i18n.Tr "cancel"}}</div>
- <button class="ui red button">{{.i18n.Tr "ok"}}</button>
+ <div class="ui cancel button">{{.locale.Tr "cancel"}}</div>
+ <button class="ui red button">{{.locale.Tr "ok"}}</button>
</div>
</form>
</div>