WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/10/2019 01:32:41 PM (2 years ago)
Author:
desrosj
Message:

I18N: Combine similar strings with minor differences.

Merges [45298] to the 5.2 branch.

Props dimadin.
Fixes #47158.

Location:
branches/5.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2

  • branches/5.2/src/wp-admin/includes/theme.php

    r45116 r45510  
    724724                            <a class="num-ratings" target="_blank" href="{{ data.reviews_url }}">
    725725                                <?php
    726                                 /* translators: %s: number of ratings */
    727                                 echo sprintf( __( '(%s ratings) <span class="screen-reader-text">link to view ratings opens in a new tab</span>' ), '{{ data.num_ratings }}' );
     726                                printf(
     727                                    '%1$s <span class="screen-reader-text">%2$s</span>',
     728                                    /* translators: %s: number of ratings */
     729                                    sprintf( __( '(%s ratings)' ), '{{ data.num_ratings }}' ),
     730                                    /* translators: accessibility text */
     731                                    __( '(opens in a new tab)' )
     732                                );
    728733                                ?>
    729734                            </a>
Note: See TracChangeset for help on using the changeset viewer.