Opened 15 years ago
Closed 15 years ago
#12381 closed (duplicate)
Shouldn't the pluralize filter consider 0 to be singular?
Description ¶
Shouldn't the pluralize filter consider 0 to be singular?
Consider this example:
{% get_comment_count for paragraph as comment_count %} {{ comment_count }} comment{{ comment_count|pluralize }}
For instance if comment_count is equal to 0, the output will be "0 comments" (with a final s).
Note:
See TracTickets
for help on using tickets.
Dupe of #12380