Fix pluralization of "votes" on own comments

This commit is contained in:
Andrew Shu
2018-07-20 14:18:06 -07:00
parent 71ce2f1cdd
commit 053e63291e

View File

@@ -74,7 +74,13 @@
{% if request.has_permission('view', comment) %}
{# Show votes at the top only if it's your own comment #}
{% if request.user == comment.user and comment.num_votes > 0 %}
<span class="comment-votes">{{ comment.num_votes }} votes</span>
<span class="comment-votes">{{ comment.num_votes }}
{% trans num_votes=comment.num_votes %}
vote
{% pluralize %}
votes
{% endtrans %}
</span>
{% endif %}
{% if comment.tag_counts %}