wp/wp-content/themes/twentyfifteen/comments.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
    23 <div id="comments" class="comments-area">
    23 <div id="comments" class="comments-area">
    24 
    24 
    25 	<?php if ( have_comments() ) : ?>
    25 	<?php if ( have_comments() ) : ?>
    26 		<h2 class="comments-title">
    26 		<h2 class="comments-title">
    27 			<?php
    27 			<?php
    28 				printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'twentyfifteen' ),
    28 				$comments_number = get_comments_number();
    29 					number_format_i18n( get_comments_number() ), get_the_title() );
    29 				if ( '1' === $comments_number ) {
       
    30 					/* translators: %s: post title */
       
    31 					printf( _x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'twentyfifteen' ), get_the_title() );
       
    32 				} else {
       
    33 					printf(
       
    34 						/* translators: 1: number of comments, 2: post title */
       
    35 						_nx(
       
    36 							'%1$s thought on &ldquo;%2$s&rdquo;',
       
    37 							'%1$s thoughts on &ldquo;%2$s&rdquo;',
       
    38 							$comments_number,
       
    39 							'comments title',
       
    40 							'twentyfifteen'
       
    41 						),
       
    42 						number_format_i18n( $comments_number ),
       
    43 						get_the_title()
       
    44 					);
       
    45 				}
    30 			?>
    46 			?>
    31 		</h2>
    47 		</h2>
    32 
    48 
    33 		<?php twentyfifteen_comment_nav(); ?>
    49 		<?php twentyfifteen_comment_nav(); ?>
    34 
    50