Skip to content
Permalink
Browse files

I18N: Split translatable strings located on the same line preceded wi…

…th a translator comment, where the first string needs that comment, but the second does not.

Props johnbillion.
See #44360.

git-svn-id: https://develop.svn.wordpress.org/trunk@45927 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Sep 2, 2019
1 parent a7513ac commit d0db5be1fed3d8c5f6ad49a1fa7eb40998ca1125
@@ -32,8 +32,12 @@
?>
<p id="footer-left" class="alignleft">
<?php
/* translators: %s: https://wordpress.org/ */
$text = sprintf( __( 'Thank you for creating with <a href="%s">WordPress</a>.' ), __( 'https://wordpress.org/' ) );
$text = sprintf(
/* 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.
*
@@ -71,8 +71,11 @@ protected function content_template() {
<div class="accordion-section-title">
<span class="preview-notice">
<?php
/* translators: %s: themes panel title in the Customizer */
echo sprintf( __( 'You are browsing %s' ), '<strong class="panel-title">' . __( 'Themes' ) . '</strong>' ); // Separate strings for consistency with other panels.
printf(
/* 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>
<?php if ( current_user_can( 'install_themes' ) && ! is_multisite() ) : ?>
@@ -131,8 +131,12 @@ function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
$site = __( 'domain' ) . '.' . $site_domain . $current_network->path;
}
/* translators: %s: site address */
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>';
printf(
'<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

0 comments on commit d0db5be

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