WordPress.org

Make WordPress Core

Changeset 14358


Ignore:
Timestamp:
05/03/2010 01:07:49 AM (10 years ago)
Author:
nbachiyski
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/comments.php

    r14323 r14358  
    2828
    2929<?php if ( have_comments() ) : ?>
    30             <h3 id="comments-title"><?php comments_number(
    31                 sprintf( __( 'No Responses to %s', 'twentyten' ), '<em>' . get_the_title() . '</em>' ),
    32                 sprintf( __( 'One Response to %s', 'twentyten' ), '<em>' . get_the_title() . '</em>' ),
    33                 sprintf( __( '%% Responses to %s', 'twentyten' ), '<em>' . get_the_title() . '</em>' )
    34             ); ?></h3>
     30            <h3 id="comments-title">
     31<?php
     32    printf( _n('One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten'),
     33        number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
     34?>
     35            </h3>
    3536
    3637<?php if ( get_comment_pages_count() > 1 ) : // are there comments to navigate through ?>
Note: See TracChangeset for help on using the changeset viewer.