Making WordPress.org

Changeset 4231


Ignore:
Timestamp:
10/12/2016 08:35:51 PM (8 years ago)
Author:
coffee2code
Message:

Support Forums: I18n improvement in Ratings_Compat to move HTML out from translatable string.

Props SergeyBiryukov.
Fixes #2090.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php

    r4230 r4231  
    183183        <?php
    184184            echo \WPORG_Ratings::get_dashicons_stars( $this->avg_rating );
    185             /* translators: %s: number of stars */
    186             printf( __( '%s out of <span itemprop="bestRating">5</span> stars', 'wporg-forums' ),
    187                 round( isset( $this->avg_rating ) ? $this->avg_rating : 0, 1 )
     185            printf(
     186                /* translators: 1: number of stars in rating, 2: total number of stars (5) */
     187                __( '%1$s out of %2$s stars', 'wporg-forums' ),
     188                round( isset( $this->avg_rating ) ? $this->avg_rating : 0, 1 ),
     189                '<span itemprop="bestRating">5</span>'
    188190            );
    189191        ?>
Note: See TracChangeset for help on using the changeset viewer.