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:
parent
75c975c5d1
commit
407f0aaa34
|
@ -3169,8 +3169,10 @@ function wp_load_image( $file ) {
|
|||
if ( is_numeric( $file ) )
|
||||
$file = get_attached_file( $file );
|
||||
|
||||
if ( ! is_file( $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 ) )
|
||||
if ( ! is_resource( $image ) ) {
|
||||
/* translators: %s: file name */
|
||||
return sprintf( __( 'File “%s” is not an image.' ), $file );
|
||||
}
|
||||
|
||||
return $image;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue