aboutsummaryrefslogtreecommitdiffstats
path: root/templates/explore/repo_list.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/explore/repo_list.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/explore/repo_list.tmpl')
-rw-r--r--templates/explore/repo_list.tmpl14
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl
index c0e371b8a0..10b503b219 100644
--- a/templates/explore/repo_list.tmpl
+++ b/templates/explore/repo_list.tmpl
@@ -12,22 +12,22 @@
</a>
<div class="labels df ac fw">
{{if .IsArchived}}
- <span class="ui basic label">{{$.i18n.Tr "repo.desc.archived"}}</span>
+ <span class="ui basic label">{{$.locale.Tr "repo.desc.archived"}}</span>
{{end}}
{{if .IsTemplate}}
{{if .IsPrivate}}
- <span class="ui basic label">{{$.i18n.Tr "repo.desc.private_template"}}</span>
+ <span class="ui basic label">{{$.locale.Tr "repo.desc.private_template"}}</span>
{{else}}
{{if .Owner.Visibility.IsPrivate}}
- <span class="ui basic label">{{$.i18n.Tr "repo.desc.internal_template"}}</span>
+ <span class="ui basic label">{{$.locale.Tr "repo.desc.internal_template"}}</span>
{{end}}
{{end}}
{{else}}
{{if .IsPrivate}}
- <span class="ui basic label">{{$.i18n.Tr "repo.desc.private"}}</span>
+ <span class="ui basic label">{{$.locale.Tr "repo.desc.private"}}</span>
{{else}}
{{if .Owner.Visibility.IsPrivate}}
- <span class="ui basic label">{{$.i18n.Tr "repo.desc.internal"}}</span>
+ <span class="ui basic label">{{$.locale.Tr "repo.desc.internal"}}</span>
{{end}}
{{end}}
{{end}}
@@ -60,12 +60,12 @@
{{end}}
</div>
{{end}}
- <p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix $.i18n}}</p>
+ <p class="time">{{$.locale.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix $.locale}}</p>
</div>
</div>
{{else}}
<div>
- {{$.i18n.Tr "explore.repo_no_results"}}
+ {{$.locale.Tr "explore.repo_no_results"}}
</div>
{{end}}
</div>