From c78b306a305e6f4a6e3c99142af24b9af7756ac7 Mon Sep 17 00:00:00 2001 From: louyihua Date: Wed, 4 Nov 2015 14:45:44 +0800 Subject: [PATCH] Fix a underscore extraction error ngettext and its parameters should not be separated into multiple lines. --- .../common/templates/discussion/thread-response.underscore | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/static/common/templates/discussion/thread-response.underscore b/common/static/common/templates/discussion/thread-response.underscore index 8032f473da..846819665d 100644 --- a/common/static/common/templates/discussion/thread-response.underscore +++ b/common/static/common/templates/discussion/thread-response.underscore @@ -1,11 +1,7 @@
<% - var fmts = ngettext( - "Show Comment (%(num_comments)s)", - "Show Comments (%(num_comments)s)", - comments.length - ); + var fmts = ngettext("Show Comment (%(num_comments)s)", "Show Comments (%(num_comments)s)", comments.length); print(interpolate(fmts, {num_comments: comments.length}, true)); %>