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 class="content-body current-badge-actions">
<div> <div>
<LinkTo @route="badges.show" @model={{this}}> <LinkTo @route="badges.show" @model={{this}}>
{{number this.grant_count}} {{html-safe
{{i18n "badges.awarded"}} (i18n
"badges.awarded"
count=this.displayCount
number=(number this.displayCount)
)
}}
</LinkTo> </LinkTo>
</div> </div>
</div> </div>

View File

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

View File

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