Making WordPress.org

Ticket #3154: 3154.patch

File 3154.patch, 1.9 KB (added by mp518, 6 years ago)

Placeholder

  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/comments.php

     
    1414        <?php if ( have_comments() ) : ?>
    1515                <h2 class="comments-title">
    1616                        <?php
    17                                 printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'rosetta' ),
    18                                         number_format_i18n( get_comments_number() ), get_the_title() );
     17                                $comments_number = get_comments_number();
     18                                if ( 1 == $comments_number ) {
     19                                    /* translators: %s: post title */
     20                                    printf( _x( 'One thought on &ldquo;%2$s&rdquo;', 'comments title', 'rosetta' ), '<span>' . get_the_title() . '</span>' );
     21                                } else {
     22                                    printf(
     23                                        /* translators: 1: number of comments, 2: post title */
     24                                        _nx(
     25                                            '%1$s response on &ldquo;%2$s&rdquo;',
     26                                            '%1$s responses on &ldquo;%2$s&rdquo;',
     27                                            $comments_number,
     28                                            'comments title',
     29                                            'rosetta'
     30                                        ),
     31                                        number_format_i18n( $comments_number ),
     32                                        '<span>' . get_the_title() . '</span>'
     33                                    );
     34                                }
    1935                        ?>
    2036                </h2>
    2137