diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 7cb8dfc084..a58305a83e 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1242,6 +1242,14 @@ commit = Commit release = Release releases = Releases tag = Tag + +n_commit_one=%s commit +n_commit_few=%s commits +n_branch_one=%s branch +n_branch_few=%s branches +n_tag_one=%s tag +n_tag_few=%s tags + released_this = released this file.title = %s at %s file_raw = Raw diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 48e9368c65..f04dedd49d 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -1,7 +1,7 @@

{{if or .PageIsCommits (gt .CommitCount 0)}} - {{.CommitCount}} {{ctx.Locale.Tr "repo.commits.commits"}} + {{ctx.Locale.TrN .CommitCount "repo.n_commit_one" "repo.n_commit_few" (StringUtils.ToString .CommitCount)}} {{else if .IsNothingToCompare}} {{ctx.Locale.Tr "repo.commits.nothing_to_compare"}} {{else}} diff --git a/templates/repo/sub_menu.tmpl b/templates/repo/sub_menu.tmpl index 654a65fa5c..7757abdb71 100644 --- a/templates/repo/sub_menu.tmpl +++ b/templates/repo/sub_menu.tmpl @@ -3,14 +3,14 @@