From d55a0b723809f5b94acd948b924c8518014445e0 Mon Sep 17 00:00:00 2001 From: Gusted Date: Mon, 27 Jun 2022 22:58:46 +0200 Subject: 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 --- templates/admin/org/list.tmpl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'templates/admin/org') diff --git a/templates/admin/org/list.tmpl b/templates/admin/org/list.tmpl index 1cfd3e79e1..aec3f2c841 100644 --- a/templates/admin/org/list.tmpl +++ b/templates/admin/org/list.tmpl @@ -4,9 +4,9 @@
{{template "base/alert" .}}

- {{.i18n.Tr "admin.orgs.org_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}}) + {{.locale.Tr "admin.orgs.org_manage_panel"}} ({{.locale.Tr "admin.total" .Total}})

@@ -18,17 +18,17 @@ ID{{SortArrow "oldest" "newest" $.SortType false}} - {{.i18n.Tr "admin.orgs.name"}} + {{.locale.Tr "admin.orgs.name"}} {{SortArrow "alphabetically" "reversealphabetically" $.SortType true}} - {{.i18n.Tr "admin.orgs.teams"}} - {{.i18n.Tr "admin.orgs.members"}} - {{.i18n.Tr "admin.users.repos"}} + {{.locale.Tr "admin.orgs.teams"}} + {{.locale.Tr "admin.orgs.members"}} + {{.locale.Tr "admin.users.repos"}} - {{.i18n.Tr "admin.users.created"}} + {{.locale.Tr "admin.users.created"}} {{SortArrow "recentupdate" "leastupdate" $.SortType false}} - {{.i18n.Tr "admin.users.edit"}} + {{.locale.Tr "admin.users.edit"}} -- cgit v1.2.3