FIX: staff_counters should be pluralized strings (#21039)

Small change to format the staff counter template to apply the correct pluralization for flagged posts/topics.
This commit is contained in:
David Battersby 2023-04-10 17:00:31 +08:00 committed by GitHub
parent c1dc6a2db4
commit 569b923fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 6 deletions

View File

@ -22,11 +22,15 @@
{{#if this.showStaffCounters}}
<div class="staff-counters">
{{#if this.model.number_of_flags_given}}
<div><span
class="helpful-flags"
>{{this.model.number_of_flags_given}}</span>{{i18n
"user.staff_counters.flags_given"
}}</div>
<div>
{{html-safe
(i18n
"user.staff_counters.flags_given"
className="helpful-flags"
count=this.model.number_of_flags_given
)
}}
</div>
{{/if}}
{{#if this.model.number_of_flagged_posts}}
<div>

View File

@ -1281,7 +1281,9 @@ en:
staged: "Staged"
staff_counters:
flags_given: "helpful flags"
flags_given:
one: '<span class="%{className}">%{count}</span> helpful flag'
other: '<span class="%{className}">%{count}</span> helpful flags'
flagged_posts: "flagged posts"
deleted_posts: "deleted posts"
suspensions: "suspensions"