diff rhodecode/templates/changeset/changeset_file_comment.html @ 2310:83e4447077d3 beta

Improved i18n for the comment count (use of ngettext for pluralisation).
author Vincent Duvert <vincent@duvert.net>
date Sun, 20 May 2012 10:47:33 +0200
parents d2043c703f84
children d3f1b71099ab 5143b8df576c
line wrap: on
line diff
--- a/rhodecode/templates/changeset/changeset_file_comment.html	Sun May 20 10:25:39 2012 +0200
+++ b/rhodecode/templates/changeset/changeset_file_comment.html	Sun May 20 10:47:33 2012 +0200
@@ -66,7 +66,7 @@
 
 
 <%def name="inlines(changeset)">
-    <div class="comments-number">${len(c.comments)} comment(s) (${c.inline_cnt} ${_('inline')})</div>
+    <div class="comments-number">${ungettext("%d comment", "%d comments", len(c.comments)) % len(c.comments)} ${ungettext("(%d inline)", "(%d inline)", c.inline_cnt) % c.inline_cnt}</div>
     %for path, lines in c.inline_comments:
         % for line,comments in lines.iteritems():
             <div style="display:none" class="inline-comment-placeholder" path="${path}" target_id="${h.safeid(h.safe_unicode(path))}">