Changeset - 83e4447077d3
[Not reviewed]
beta
0 2 0
Vincent Duvert - 13 years ago 2012-05-20 10:47:33
vincent@duvert.net
Improved i18n for the comment count (use of ngettext for pluralisation).
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/templates/changeset/changeset.html
Show inline comments
 
@@ -39,7 +39,7 @@
 
                  ${c.ignorews_url(request.GET)}
 
                  ${c.context_url(request.GET)}
 
                </div>
 
                <div class="comments-number" style="float:right;padding-right:5px">${len(c.comments)} comment(s) (${c.inline_cnt} ${_('inline')})</div>
 
                <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>
 
			</div>
 
		</div>
 
	    <div id="changeset_content">
rhodecode/templates/changeset/changeset_file_comment.html
Show inline comments
 
@@ -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))}">
0 comments (0 inline, 0 general)