Skip to content
Permalink
Browse files

I18N: Combine similar strings with minor differences.

Merges [45298] to the 5.2 branch.

Props dimadin.
Fixes #47158.

git-svn-id: https://develop.svn.wordpress.org/branches/5.2@45510 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
desrosj committed Jun 10, 2019
1 parent 05c0ad1 commit cb5c0dc9bd9717ca046d01cacd016ce4a7f69c32
Showing with 11 additions and 6 deletions.
  1. +1 −1 src/wp-admin/includes/dashboard.php
  2. +2 −2 src/wp-admin/includes/file.php
  3. +7 −2 src/wp-admin/includes/theme.php
  4. +1 −1 src/wp-login.php
@@ -1628,7 +1628,7 @@ function wp_dashboard_php_nag() {
<p><?php echo $msg; ?></p>

<h3><?php _e( 'What is PHP and how does it affect my site?' ); ?></h3>
<p><?php _e( 'PHP is the programming language we use to build and maintain WordPress. Newer versions of PHP are both faster and more secure, so updating will have a positive effect on your sites performance.' ); ?></p>
<p><?php _e( 'PHP is the programming language we use to build and maintain WordPress. Newer versions of PHP are both faster and more secure, so updating will have a positive effect on your site&#8217;s performance.' ); ?></p>

<p class="button-container">
<?php
@@ -1187,8 +1187,8 @@ function verify_file_signature( $filename, $signatures, $filename_for_errors = f
return new WP_Error(
'signature_verification_unsupported',
sprintf(
/* translators: 1: The filename of the package. */
__( 'The authenticity of %1$s could not be verified as signature verification is unavailable on this system.' ),
/* translators: %s: The filename of the package. */
__( 'The authenticity of %s could not be verified as signature verification is unavailable on this system.' ),
'<span class="code">' . esc_html( $filename_for_errors ) . '</span>'
),
array(
@@ -723,8 +723,13 @@ function customize_themes_print_templates() {
{{{ data.stars }}}
<a class="num-ratings" target="_blank" href="{{ data.reviews_url }}">
<?php
/* translators: %s: number of ratings */
echo sprintf( __( '(%s ratings) <span class="screen-reader-text">link to view ratings opens in a new tab</span>' ), '{{ data.num_ratings }}' );
printf(
'%1$s <span class="screen-reader-text">%2$s</span>',
/* translators: %s: number of ratings */
sprintf( __( '(%s ratings)' ), '{{ data.num_ratings }}' ),
/* translators: accessibility text */
__( '(opens in a new tab)' )
);
?>
</a>
</div>
@@ -426,7 +426,7 @@ function retrieve_password() {
$message = apply_filters( 'retrieve_password_message', $message, $key, $user_login, $user_data );
if ( $message && ! wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) ) {
wp_die( __( 'The email could not be sent.' ) . "<br />\n" . __( 'Possible reason: your host may have disabled the mail() function.' ) );
wp_die( __( 'The email could not be sent. Possible reason: your host may have disabled the mail() function.' ) );
}
return true;

0 comments on commit cb5c0dc

Please sign in to comment.
You can’t perform that action at this time.