From ec0043c279911702522ffd2be8e14d11dc172015 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 15 Nov 2016 20:54:30 +0000 Subject: [PATCH] I18N: Remove `` tags from translatable strings in `wp-includes/class-wp-customize-manager.php`. Props ramiy. Fixes #38802. Built from https://develop.svn.wordpress.org/trunk@39254 git-svn-id: http://core.svn.wordpress.org/trunk@39194 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-manager.php | 29 ++++++++++++++++------ wp-includes/version.php | 2 +- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index 3aa7ebcf90..0909f4d6aa 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -3552,18 +3552,24 @@ final class WP_Customize_Manager { $width = absint( get_theme_support( 'custom-header', 'width' ) ); $height = absint( get_theme_support( 'custom-header', 'height' ) ); if ( $width && $height ) { - /* translators: %s: header size in pixels */ - $control_description = sprintf( __( 'Upload your video in .mp4 format and minimize its file size for best results. Your theme recommends dimensions of %s pixels.' ), + $control_description = sprintf( + /* translators: 1: .mp4, 2: header size in pixels */ + __( 'Upload your video in %1$s format and minimize its file size for best results. Your theme recommends dimensions of %2$s pixels.' ), + '.mp4', sprintf( '%s × %s', $width, $height ) ); } elseif ( $width ) { - /* translators: %s: header width in pixels */ - $control_description = sprintf( __( 'Upload your video in .mp4 format and minimize its file size for best results. Your theme recommends a width of %s pixels.' ), + $control_description = sprintf( + /* translators: 1: .mp4, 2: header width in pixels */ + __( 'Upload your video in %1$s format and minimize its file size for best results. Your theme recommends a width of %2$s pixels.' ), + '.mp4', sprintf( '%s', $width ) ); } else { - /* translators: %s: header height in pixels */ - $control_description = sprintf( __( 'Upload your video in .mp4 format and minimize its file size for best results. Your theme recommends a height of %s pixels.' ), + $control_description = sprintf( + /* translators: 1: .mp4, 2: header height in pixels */ + __( 'Upload your video in %1$s format and minimize its file size for best results. Your theme recommends a height of %2$s pixels.' ), + '.mp4', sprintf( '%s', $height ) ); } @@ -3972,10 +3978,17 @@ final class WP_Customize_Manager { if ( $video ) { $size = filesize( $video ); if ( 8 < $size / pow( 1024, 2 ) ) { // Check whether the size is larger than 8MB. - $validity->add( 'size_too_large', __( 'This video file is too large to use as a header video. Try a shorter video or optimize the compression settings and re-upload a file that is less than 8MB. Or, upload your video to YouTube and link it with the option below.' ) ); + $validity->add( 'size_too_large', + __( 'This video file is too large to use as a header video. Try a shorter video or optimize the compression settings and re-upload a file that is less than 8MB. Or, upload your video to YouTube and link it with the option below.' ) + ); } if ( '.mp4' !== substr( $video, -4 ) && '.mov' !== substr( $video, -4 ) ) { // Check for .mp4 or .mov format, which (assuming h.264 encoding) are the only cross-browser-supported formats. - $validity->add( 'invalid_file_type', __( 'Only .mp4 or .mov files may be used for header video. Please convert your video file and try again, or, upload your video to YouTube and link it with the option below.' ) ); + $validity->add( 'invalid_file_type', sprintf( + /* translators: 1: .mp4, 2: .mov */ + __( 'Only %1$s or %2$s files may be used for header video. Please convert your video file and try again, or, upload your video to YouTube and link it with the option below.' ), + '.mp4', + '.mov' + ) ); } } return $validity; diff --git a/wp-includes/version.php b/wp-includes/version.php index de0d6c0418..a9454d84bb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta3-39253'; +$wp_version = '4.7-beta3-39254'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.