Use _n() instead of comments_number() in twentyten, because it doesn't handle plurals properly. Props zeo and dimadin. Fixes #13187

git-svn-id: https://develop.svn.wordpress.org/trunk@14358 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Nikolay Bachiyski 2010-05-03 01:07:49 +00:00
parent 837a60cfdc
commit ffcc525c07
1 changed files with 6 additions and 5 deletions

View File

@ -27,11 +27,12 @@
?>
<?php if ( have_comments() ) : ?>
<h3 id="comments-title"><?php comments_number(
sprintf( __( 'No Responses to %s', 'twentyten' ), '<em>' . get_the_title() . '</em>' ),
sprintf( __( 'One Response to %s', 'twentyten' ), '<em>' . get_the_title() . '</em>' ),
sprintf( __( '%% Responses to %s', 'twentyten' ), '<em>' . get_the_title() . '</em>' )
); ?></h3>
<h3 id="comments-title">
<?php
printf( _n('One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten'),
number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
?>
</h3>
<?php if ( get_comment_pages_count() > 1 ) : // are there comments to navigate through ?>
<div class="navigation">