mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 09:24:07 -05:00
Merge pull request '[v7.0/forgejo] Plural support for release download count' (#3037) from bp-v7.0/forgejo-2fff6c2 into v7.0/forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3037 Reviewed-by: 0ko <0ko@noreply.codeberg.org>
This commit is contained in:
commit
279d1a85f0
3 changed files with 4 additions and 3 deletions
|
@ -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_name_protected = The tag name is protected.
|
||||||
release.tag_already_exist = This tag name already exists.
|
release.tag_already_exist = This tag name already exists.
|
||||||
release.downloads = Downloads
|
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_msg = Use the title and content of release as tag message.
|
||||||
release.add_tag = Create Tag Only
|
release.add_tag = Create Tag Only
|
||||||
release.releases_for = Releases for %s
|
release.releases_for = Releases for %s
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
<strong>{{svg "octicon-package" 16 "tw-mr-1"}}{{.Name}}</strong>
|
<strong>{{svg "octicon-package" 16 "tw-mr-1"}}{{.Name}}</strong>
|
||||||
</a>
|
</a>
|
||||||
<div>
|
<div>
|
||||||
<span class="text grey">{{ctx.Locale.Tr "repo.release.download_count" (ctx.Locale.PrettyNumber .DownloadCount)}} · {{.Size | ctx.Locale.TrSize}}</span>
|
<span class="text grey">{{ctx.Locale.TrN .DownloadCount "repo.release.download_count_one" "repo.release.download_count_few" (ctx.Locale.PrettyNumber .DownloadCount)}} · {{.Size | ctx.Locale.TrSize}}</span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
<div class="flex-text-inline tw-flex-1">
|
<div class="flex-text-inline tw-flex-1">
|
||||||
<input name="attachment-edit-{{.UUID}}" class="attachment_edit" required value="{{.Name}}">
|
<input name="attachment-edit-{{.UUID}}" class="attachment_edit" required value="{{.Name}}">
|
||||||
<input name="attachment-del-{{.UUID}}" type="hidden" value="false">
|
<input name="attachment-del-{{.UUID}}" type="hidden" value="false">
|
||||||
<span class="ui text grey tw-whitespace-nowrap">{{ctx.Locale.Tr "repo.release.download_count" (ctx.Locale.PrettyNumber .DownloadCount)}} · {{.Size | ctx.Locale.TrSize}}</span>
|
<span class="ui text grey tw-whitespace-nowrap">{{ctx.Locale.TrN .DownloadCount "repo.release.download_count_one" "repo.release.download_count_few" (ctx.Locale.PrettyNumber .DownloadCount)}} · {{.Size | ctx.Locale.TrSize}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a class="ui mini compact red button remove-rel-attach" data-id="{{.ID}}" data-uuid="{{.UUID}}">
|
<a class="ui mini compact red button remove-rel-attach" data-id="{{.ID}}" data-uuid="{{.UUID}}">
|
||||||
{{ctx.Locale.Tr "remove"}}
|
{{ctx.Locale.Tr "remove"}}
|
||||||
|
|
Loading…
Reference in a new issue