Making WordPress.org

Ticket #2090: meta-2090.patch

File meta-2090.patch, 1.1 KB (added by SergeyBiryukov, 8 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php

     
    172172                <div style="font-weight:bold;"><?php _e( 'Average Rating', 'wporg-forums' ); ?></div>
    173173                <?php
    174174                        echo \WPORG_Ratings::get_dashicons_stars( $this->avg_rating );
    175                         /* translators: %s: number of stars */
    176                         printf( __( '%s out of <span itemprop="bestRating">5</span> stars', 'wporg-forums' ),
    177                                 round( isset( $this->avg_rating ) ? $this->avg_rating : 0, 1 )
     175                        /* translators: 1: number of stars in rating, 2: total number of stars (5) */
     176                        printf( __( '%1$s out of %2$s stars', 'wporg-forums' ),
     177                                round( isset( $this->avg_rating ) ? $this->avg_rating : 0, 1 ),
     178                                '<span itemprop="bestRating">5</span>'
    178179                        );
    179180                ?>
    180181                <div class="reviews-submit-link">