From d0db5be1fed3d8c5f6ad49a1fa7eb40998ca1125 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 2 Sep 2019 00:42:01 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@45927 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/admin-footer.php | 8 ++++++-- .../customize/class-wp-customize-themes-panel.php | 7 +++++-- src/wp-signup.php | 8 ++++++-- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/admin-footer.php b/src/wp-admin/admin-footer.php index 0a77d3ac14..4c4c40a081 100644 --- a/src/wp-admin/admin-footer.php +++ b/src/wp-admin/admin-footer.php @@ -32,8 +32,12 @@ global $hook_suffix; ?>
' . __( 'Themes' ) . '' ); // Separate strings for consistency with other panels. + printf( + /* translators: %s: themes panel title in the Customizer */ + __( 'You are browsing %s' ), + '' . __( 'Themes' ) . '' + ); // Separate strings for consistency with other panels. ?> diff --git a/src/wp-signup.php b/src/wp-signup.php index 362b6bacae..db8da21158 100644 --- a/src/wp-signup.php +++ b/src/wp-signup.php @@ -131,8 +131,12 @@ function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) { $site = __( 'domain' ) . '.' . $site_domain . $current_network->path; } - /* translators: %s: site address */ - echo '

(' . sprintf( __( 'Your address will be %s.' ), $site ) . ') ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!' ) . '

'; + printf( + '

(%s) %s

', + /* 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