I18N: Split translatable strings located on the same line preceded with a translator comment, where the first string needs that comment, but the second does not.

Props johnbillion.
See #44360.
Built from https://develop.svn.wordpress.org/trunk@45927


git-svn-id: http://core.svn.wordpress.org/trunk@45738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-09-02 00:43:55 +00:00
parent 16b8d91baa
commit 8662d9a74d
4 changed files with 18 additions and 7 deletions

View File

@ -32,8 +32,12 @@ global $hook_suffix;
?> ?>
<p id="footer-left" class="alignleft"> <p id="footer-left" class="alignleft">
<?php <?php
/* translators: %s: https://wordpress.org/ */ $text = sprintf(
$text = sprintf( __( 'Thank you for creating with <a href="%s">WordPress</a>.' ), __( 'https://wordpress.org/' ) ); /* translators: %s: https://wordpress.org/ */
__( 'Thank you for creating with <a href="%s">WordPress</a>.' ),
__( 'https://wordpress.org/' )
);
/** /**
* Filters the "Thank you" text displayed in the admin footer. * Filters the "Thank you" text displayed in the admin footer.
* *

View File

@ -71,8 +71,11 @@ class WP_Customize_Themes_Panel extends WP_Customize_Panel {
<div class="accordion-section-title"> <div class="accordion-section-title">
<span class="preview-notice"> <span class="preview-notice">
<?php <?php
/* translators: %s: themes panel title in the Customizer */ printf(
echo sprintf( __( 'You are browsing %s' ), '<strong class="panel-title">' . __( 'Themes' ) . '</strong>' ); // Separate strings for consistency with other panels. /* translators: %s: themes panel title in the Customizer */
__( 'You are browsing %s' ),
'<strong class="panel-title">' . __( 'Themes' ) . '</strong>'
); // Separate strings for consistency with other panels.
?> ?>
</span> </span>
<?php if ( current_user_can( 'install_themes' ) && ! is_multisite() ) : ?> <?php if ( current_user_can( 'install_themes' ) && ! is_multisite() ) : ?>

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.3-alpha-45926'; $wp_version = '5.3-alpha-45927';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -131,8 +131,12 @@ function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
$site = __( 'domain' ) . '.' . $site_domain . $current_network->path; $site = __( 'domain' ) . '.' . $site_domain . $current_network->path;
} }
/* translators: %s: site address */ printf(
echo '<p>(<strong>' . sprintf( __( 'Your address will be %s.' ), $site ) . '</strong>) ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!' ) . '</p>'; '<p>(<strong>%s</strong>) %s</p>',
/* translators: %s: site address */
sprintf( __( 'Your address will be %s.' ), $site ),
__( 'Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!' )
);
} }
// Blog Title // Blog Title