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}} {{#if this.showStaffCounters}}
<div class="staff-counters"> <div class="staff-counters">
{{#if this.model.number_of_flags_given}} {{#if this.model.number_of_flags_given}}
<div><span <div>
class="helpful-flags" {{html-safe
>{{this.model.number_of_flags_given}}</span>{{i18n (i18n
"user.staff_counters.flags_given" "user.staff_counters.flags_given"
}}</div> className="helpful-flags"
count=this.model.number_of_flags_given
)
}}
</div>
{{/if}} {{/if}}
{{#if this.model.number_of_flagged_posts}} {{#if this.model.number_of_flagged_posts}}
<div> <div>

View File

@ -1281,7 +1281,9 @@ en:
staged: "Staged" staged: "Staged"
staff_counters: 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" flagged_posts: "flagged posts"
deleted_posts: "deleted posts" deleted_posts: "deleted posts"
suspensions: "suspensions" suspensions: "suspensions"