mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
parent
c1dc6a2db4
commit
569b923fb6
@ -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>
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user