mirror of
https://github.com/go-gitea/gitea
synced 2025-08-08 18:48:21 +00:00
Always use ctx.Locale.Tr
inside templates (#27231)
This commit is contained in:
@@ -5,39 +5,39 @@ const data = {
|
||||
isMirrorsEnabled: {{.MirrorsEnabled}},
|
||||
isStarsEnabled: {{not .IsDisableStars}},
|
||||
|
||||
textRepository: {{.locale.Tr "repository"}},
|
||||
textOrganization: {{.locale.Tr "organization"}},
|
||||
textMyRepos: {{.locale.Tr "home.my_repos"}},
|
||||
textNewRepo: {{.locale.Tr "new_repo"}},
|
||||
textSearchRepos: {{.locale.Tr "home.search_repos"}},
|
||||
textFilter: {{.locale.Tr "home.filter"}},
|
||||
textShowArchived: {{.locale.Tr "home.show_archived"}},
|
||||
textShowPrivate: {{.locale.Tr "home.show_private"}},
|
||||
textRepository: {{ctx.Locale.Tr "repository"}},
|
||||
textOrganization: {{ctx.Locale.Tr "organization"}},
|
||||
textMyRepos: {{ctx.Locale.Tr "home.my_repos"}},
|
||||
textNewRepo: {{ctx.Locale.Tr "new_repo"}},
|
||||
textSearchRepos: {{ctx.Locale.Tr "home.search_repos"}},
|
||||
textFilter: {{ctx.Locale.Tr "home.filter"}},
|
||||
textShowArchived: {{ctx.Locale.Tr "home.show_archived"}},
|
||||
textShowPrivate: {{ctx.Locale.Tr "home.show_private"}},
|
||||
|
||||
textShowBothArchivedUnarchived: {{.locale.Tr "home.show_both_archived_unarchived"}},
|
||||
textShowOnlyUnarchived: {{.locale.Tr "home.show_only_unarchived"}},
|
||||
textShowOnlyArchived: {{.locale.Tr "home.show_only_archived"}},
|
||||
textShowBothArchivedUnarchived: {{ctx.Locale.Tr "home.show_both_archived_unarchived"}},
|
||||
textShowOnlyUnarchived: {{ctx.Locale.Tr "home.show_only_unarchived"}},
|
||||
textShowOnlyArchived: {{ctx.Locale.Tr "home.show_only_archived"}},
|
||||
|
||||
textShowBothPrivatePublic: {{.locale.Tr "home.show_both_private_public"}},
|
||||
textShowOnlyPublic: {{.locale.Tr "home.show_only_public"}},
|
||||
textShowOnlyPrivate: {{.locale.Tr "home.show_only_private"}},
|
||||
textShowBothPrivatePublic: {{ctx.Locale.Tr "home.show_both_private_public"}},
|
||||
textShowOnlyPublic: {{ctx.Locale.Tr "home.show_only_public"}},
|
||||
textShowOnlyPrivate: {{ctx.Locale.Tr "home.show_only_private"}},
|
||||
|
||||
textAll: {{.locale.Tr "all"}},
|
||||
textSources: {{.locale.Tr "sources"}},
|
||||
textForks: {{.locale.Tr "forks"}},
|
||||
textMirrors: {{.locale.Tr "mirrors"}},
|
||||
textCollaborative: {{.locale.Tr "collaborative"}},
|
||||
textAll: {{ctx.Locale.Tr "all"}},
|
||||
textSources: {{ctx.Locale.Tr "sources"}},
|
||||
textForks: {{ctx.Locale.Tr "forks"}},
|
||||
textMirrors: {{ctx.Locale.Tr "mirrors"}},
|
||||
textCollaborative: {{ctx.Locale.Tr "collaborative"}},
|
||||
|
||||
textFirstPage: {{.locale.Tr "admin.first_page"}},
|
||||
textPreviousPage: {{.locale.Tr "repo.issues.previous"}},
|
||||
textNextPage: {{.locale.Tr "repo.issues.next"}},
|
||||
textLastPage: {{.locale.Tr "admin.last_page"}},
|
||||
textFirstPage: {{ctx.Locale.Tr "admin.first_page"}},
|
||||
textPreviousPage: {{ctx.Locale.Tr "repo.issues.previous"}},
|
||||
textNextPage: {{ctx.Locale.Tr "repo.issues.next"}},
|
||||
textLastPage: {{ctx.Locale.Tr "admin.last_page"}},
|
||||
|
||||
textMyOrgs: {{.locale.Tr "home.my_orgs"}},
|
||||
textNewOrg: {{.locale.Tr "new_org"}},
|
||||
textMyOrgs: {{ctx.Locale.Tr "home.my_orgs"}},
|
||||
textNewOrg: {{ctx.Locale.Tr "new_org"}},
|
||||
|
||||
textOrgVisibilityLimited: {{.locale.Tr "org.settings.visibility.limited_shortname"}},
|
||||
textOrgVisibilityPrivate: {{.locale.Tr "org.settings.visibility.private_shortname"}},
|
||||
textOrgVisibilityLimited: {{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}},
|
||||
textOrgVisibilityPrivate: {{ctx.Locale.Tr "org.settings.visibility.private_shortname"}},
|
||||
};
|
||||
|
||||
{{if .Team}}
|
||||
|
Reference in New Issue
Block a user