From 3cf74baa5bb856ecba1c23f13b453b6e0f1fb96e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 14 Dec 2015 12:53:37 +0000 Subject: [PATCH] I18N: Remove `` tags from translatable strings in `WP_Customize_Manager::register_controls()` and `WP_Customize_Header_Image_Control::render_content()`. Add translator comments. See #35039. git-svn-id: https://develop.svn.wordpress.org/trunk@35923 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-manager.php | 6 +++++- .../class-wp-customize-header-image-control.php | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index a00ebaf840..2653247aed 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -1855,7 +1855,11 @@ final class WP_Customize_Manager { $this->add_control( new WP_Customize_Site_Icon_Control( $this, 'site_icon', array( 'label' => __( 'Site Icon' ), - 'description' => __( 'The Site Icon is used as a browser and app icon for your site. Icons must be square, and at least 512 pixels wide and tall.' ), + 'description' => sprintf( + /* translators: %s: site icon size in pixels */ + __( 'The Site Icon is used as a browser and app icon for your site. Icons must be square, and at least %s pixels wide and tall.' ), + '512' + ), 'section' => 'title_tagline', 'priority' => 60, 'height' => 512, diff --git a/src/wp-includes/customize/class-wp-customize-header-image-control.php b/src/wp-includes/customize/class-wp-customize-header-image-control.php index 52d52c18d5..8bbb572b8f 100644 --- a/src/wp-includes/customize/class-wp-customize-header-image-control.php +++ b/src/wp-includes/customize/class-wp-customize-header-image-control.php @@ -176,11 +176,20 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {

Add new image, your theme recommends a header size of %s × %s pixels.' ), $width, $height ); + /* translators: %s: header size in pixels */ + printf( __( 'While you can crop images to your liking after clicking Add new image, your theme recommends a header size of %s pixels.' ), + sprintf( '%s × %s', $width, $height ) + ); } elseif ( $width ) { - printf( __( 'While you can crop images to your liking after clicking Add new image, your theme recommends a header width of %s pixels.' ), $width ); + /* translators: %s: header width in pixels */ + printf( __( 'While you can crop images to your liking after clicking Add new image, your theme recommends a header width of %s pixels.' ), + sprintf( '%s', $width ) + ); } else { - printf( __( 'While you can crop images to your liking after clicking Add new image, your theme recommends a header height of %s pixels.' ), $height ); + /* translators: %s: header height in pixels */ + printf( __( 'While you can crop images to your liking after clicking Add new image, your theme recommends a header height of %s pixels.' ), + sprintf( '%s', $height ) + ); } ?>