comparison 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
comparison
equal deleted inserted replaced
2309:4d7d052ed269 2310:83e4447077d3
64 </div> 64 </div>
65 </%def> 65 </%def>
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))}">
73 %for co in comments: 73 %for co in comments:
74 ${comment_block(co)} 74 ${comment_block(co)}