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
This commit is contained in:
Sergey Biryukov 2016-08-23 23:35:15 +00:00
parent 75c975c5d1
commit 407f0aaa34
1 changed files with 8 additions and 4 deletions

View File

@ -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;
}