diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 56a866bae..dc03ebc8d 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2635,7 +2635,8 @@ release.tag_name_invalid = The tag name is not valid. release.tag_name_protected = The tag name is protected. release.tag_already_exist = This tag name already exists. release.downloads = Downloads -release.download_count = %s downloads +release.download_count_one = %s download +release.download_count_few = %s downloads release.add_tag_msg = Use the title and content of release as tag message. release.add_tag = Create Tag Only release.releases_for = Releases for %s diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index ba5cea072..f1e6ffda9 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -89,7 +89,7 @@ {{svg "octicon-package" 16 "tw-mr-1"}}{{.Name}}
- {{ctx.Locale.Tr "repo.release.download_count" (ctx.Locale.PrettyNumber .DownloadCount)}} · {{.Size | ctx.Locale.TrSize}} + {{ctx.Locale.TrN .DownloadCount "repo.release.download_count_one" "repo.release.download_count_few" (ctx.Locale.PrettyNumber .DownloadCount)}} · {{.Size | ctx.Locale.TrSize}}
{{end}} diff --git a/templates/repo/release/new.tmpl b/templates/repo/release/new.tmpl index b5f4535b1..425cc2c87 100644 --- a/templates/repo/release/new.tmpl +++ b/templates/repo/release/new.tmpl @@ -64,7 +64,7 @@
- {{ctx.Locale.Tr "repo.release.download_count" (ctx.Locale.PrettyNumber .DownloadCount)}} · {{.Size | ctx.Locale.TrSize}} + {{ctx.Locale.TrN .DownloadCount "repo.release.download_count_one" "repo.release.download_count_few" (ctx.Locale.PrettyNumber .DownloadCount)}} · {{.Size | ctx.Locale.TrSize}}
{{ctx.Locale.Tr "remove"}}