##// END OF EJS Templates
Improved i18n for the comment count (use of ngettext for pluralisation).
Vincent Duvert -
r2310:83e44470 beta
parent child Browse files
Show More
@@ -39,7 +39,7 b''
39 ${c.ignorews_url(request.GET)}
39 ${c.ignorews_url(request.GET)}
40 ${c.context_url(request.GET)}
40 ${c.context_url(request.GET)}
41 </div>
41 </div>
42 <div class="comments-number" style="float:right;padding-right:5px">${len(c.comments)} comment(s) (${c.inline_cnt} ${_('inline')})</div>
42 <div class="comments-number" style="float:right;padding-right:5px">${ungettext("%d comment", "%d comments", len(c.comments)) % len(c.comments)} ${ungettext("(%d inline)", "(%d inline)", c.inline_cnt) % c.inline_cnt}</div>
43 </div>
43 </div>
44 </div>
44 </div>
45 <div id="changeset_content">
45 <div id="changeset_content">
@@ -66,7 +66,7 b''
66
66
67
67
68 <%def name="inlines(changeset)">
68 <%def name="inlines(changeset)">
69 <div class="comments-number">${len(c.comments)} comment(s) (${c.inline_cnt} ${_('inline')})</div>
69 <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>
70 %for path, lines in c.inline_comments:
70 %for path, lines in c.inline_comments:
71 % for line,comments in lines.iteritems():
71 % for line,comments in lines.iteritems():
72 <div style="display:none" class="inline-comment-placeholder" path="${path}" target_id="${h.safeid(h.safe_unicode(path))}">
72 <div style="display:none" class="inline-comment-placeholder" path="${path}" target_id="${h.safeid(h.safe_unicode(path))}">
General Comments 0
You need to be logged in to leave comments. Login now