REFACTOR: Use pluralized string for js.badges.awarded

This commit is contained in:
Gerhard Schlager 2023-07-31 11:41:30 +02:00 committed by Gerhard Schlager
parent 6a67d69f7a
commit 1af33fdb71
3 changed files with 17 additions and 8 deletions

View File

@ -287,8 +287,13 @@
<div class="content-body current-badge-actions">
<div>
<LinkTo @route="badges.show" @model={{this}}>
{{number this.grant_count}}
{{i18n "badges.awarded"}}
{{html-safe
(i18n
"badges.awarded"
count=this.displayCount
number=(number this.displayCount)
)
}}
</LinkTo>
</div>
</div>

View File

@ -47,8 +47,13 @@
@model={{this.badge}}
class="badge-granted"
>
{{number this.displayCount}}
{{i18n "badges.awarded"}}
{{html-safe
(i18n
"badges.awarded"
count=this.displayCount
number=(number this.displayCount)
)
}}
</LinkTo>
{{/if}}

View File

@ -4168,10 +4168,9 @@ en:
more_badges:
one: "+%{count} More"
other: "+%{count} More"
granted:
one: "%{count} granted"
other: "%{count} granted"
awarded: awarded
awarded:
one: "%{number} awarded"
other: "%{number} awarded"
select_badge_for_title: Select a badge to use as your title
none: "(none)"
successfully_granted: "Successfully granted %{badge} to %{username}"