From 053e63291e49f71bd4d2d729d8a193427ccb9830 Mon Sep 17 00:00:00 2001 From: Andrew Shu Date: Fri, 20 Jul 2018 14:18:06 -0700 Subject: [PATCH] Fix pluralization of "votes" on own comments --- tildes/tildes/templates/macros/comments.jinja2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tildes/tildes/templates/macros/comments.jinja2 b/tildes/tildes/templates/macros/comments.jinja2 index 5f7c3dc..8fdec2e 100644 --- a/tildes/tildes/templates/macros/comments.jinja2 +++ b/tildes/tildes/templates/macros/comments.jinja2 @@ -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 %} - {{ comment.num_votes }} votes + {{ comment.num_votes }} + {% trans num_votes=comment.num_votes %} + vote + {% pluralize %} + votes + {% endtrans %} + {% endif %} {% if comment.tag_counts %}