mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 10:57:04 +08: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}}
|
||||
<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>
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user