loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'Improve localization of repo summary' (#2756) from 0ko/forgejo:i18n-repository-summary into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2756
Reviewed-by: Gusted <gusted@noreply.codeberg.org>

+12 -4
+8
options/locale/locale_en-US.ini
··· 1242 1242 release = Release 1243 1243 releases = Releases 1244 1244 tag = Tag 1245 + 1246 + n_commit_one=%s commit 1247 + n_commit_few=%s commits 1248 + n_branch_one=%s branch 1249 + n_branch_few=%s branches 1250 + n_tag_one=%s tag 1251 + n_tag_few=%s tags 1252 + 1245 1253 released_this = released this 1246 1254 file.title = %s at %s 1247 1255 file_raw = Raw
+1 -1
templates/repo/commits_table.tmpl
··· 1 1 <h4 class="ui top attached header commits-table tw-flex tw-items-center tw-justify-between"> 2 2 <div class="commits-table-left tw-flex tw-items-center"> 3 3 {{if or .PageIsCommits (gt .CommitCount 0)}} 4 - {{.CommitCount}} {{ctx.Locale.Tr "repo.commits.commits"}} 4 + {{ctx.Locale.TrN .CommitCount "repo.n_commit_one" "repo.n_commit_few" (StringUtils.ToString .CommitCount)}} 5 5 {{else if .IsNothingToCompare}} 6 6 {{ctx.Locale.Tr "repo.commits.nothing_to_compare"}} 7 7 {{else}}
+3 -3
templates/repo/sub_menu.tmpl
··· 3 3 <div class="ui segment sub-menu repository-menu"> 4 4 {{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo)}} 5 5 <a class="item muted {{if .PageIsCommits}}active{{end}}" href="{{.RepoLink}}/commits/{{.BranchNameSubURL}}"> 6 - {{svg "octicon-history"}} <b>{{ctx.Locale.PrettyNumber .CommitsCount}}</b> {{ctx.Locale.TrN .CommitsCount "repo.commit" "repo.commits"}} 6 + {{svg "octicon-history"}} {{ctx.Locale.TrN .CommitsCount "repo.n_commit_one" "repo.n_commit_few" (printf "<b>%d</b>" .CommitsCount | SafeHTML)}} 7 7 </a> 8 8 <a class="item muted {{if .PageIsBranches}}active{{end}}" href="{{.RepoLink}}/branches"> 9 - {{svg "octicon-git-branch"}} <b>{{ctx.Locale.PrettyNumber .BranchesCount}}</b> {{ctx.Locale.TrN .BranchesCount "repo.branch" "repo.branches"}} 9 + {{svg "octicon-git-branch"}} {{ctx.Locale.TrN .BranchesCount "repo.n_branch_one" "repo.n_branch_few" (printf "<b>%d</b>" .BranchesCount | SafeHTML)}} 10 10 </a> 11 11 {{if $.Permission.CanRead $.UnitTypeCode}} 12 12 <a class="item muted {{if .PageIsTagList}}active{{end}}" href="{{.RepoLink}}/tags"> 13 - {{svg "octicon-tag"}} <b>{{ctx.Locale.PrettyNumber .NumTags}}</b> {{ctx.Locale.TrN .NumTags "repo.tag" "repo.tags"}} 13 + {{svg "octicon-tag"}} {{ctx.Locale.TrN .NumTags "repo.n_tag_one" "repo.n_tag_few" (printf "<b>%d</b>" .NumTags | SafeHTML)}} 14 14 </a> 15 15 {{end}} 16 16 <span class="item not-mobile" {{if not (eq .Repository.Size 0)}}data-tooltip-content="{{.Repository.SizeDetailsString}}"{{end}}>