Changeset 41761 for trunk/src/wp-content/themes/twentyfifteen/comments.php
- Timestamp:
- 10/05/2017 12:40:20 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/comments.php
r30896 r41761 26 26 <h2 class="comments-title"> 27 27 <?php 28 printf( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'twentyfifteen' ), 29 number_format_i18n( get_comments_number() ), get_the_title() ); 28 $comments_number = get_comments_number(); 29 if ( '1' === $comments_number ) { 30 /* translators: %s: post title */ 31 printf( _x( 'One thought on “%s”', '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 “%2$s”', 37 '%1$s thoughts on “%2$s”', 38 $comments_number, 39 'comments title', 40 'twentyfifteen' 41 ), 42 number_format_i18n( $comments_number ), 43 get_the_title() 44 ); 45 } 30 46 ?> 31 47 </h2>
Note: See TracChangeset
for help on using the changeset viewer.