From 407f0aaa34e237191b1366fe73f71fd11dd11b86 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 23 Aug 2016 23:35:15 +0000 Subject: [PATCH] I18N: Add translator comments for strings in `wp-includes/deprecated.php`. Props ramiy. Fixes #37797. git-svn-id: https://develop.svn.wordpress.org/trunk@38343 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/deprecated.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/deprecated.php b/src/wp-includes/deprecated.php index 0d30113b28..d3cea96548 100644 --- a/src/wp-includes/deprecated.php +++ b/src/wp-includes/deprecated.php @@ -3169,8 +3169,10 @@ function wp_load_image( $file ) { if ( is_numeric( $file ) ) $file = get_attached_file( $file ); - if ( ! is_file( $file ) ) - return sprintf(__('File “%s” doesn’t exist?'), $file); + if ( ! is_file( $file ) ) { + /* translators: %s: file name */ + return sprintf( __( 'File “%s” doesn’t exist?' ), $file ); + } if ( ! function_exists('imagecreatefromstring') ) return __('The GD image library is not installed.'); @@ -3180,8 +3182,10 @@ function wp_load_image( $file ) { $image = imagecreatefromstring( file_get_contents( $file ) ); - if ( !is_resource( $image ) ) - return sprintf(__('File “%s” is not an image.'), $file); + if ( ! is_resource( $image ) ) { + /* translators: %s: file name */ + return sprintf( __( 'File “%s” is not an image.' ), $file ); + } return $image; }