WordPress.org

Make WordPress Core

Changeset 38343


Ignore:
Timestamp:
08/23/2016 11:35:15 PM (3 years ago)
Author:
SergeyBiryukov
Message:

I18N: Add translator comments for strings in wp-includes/deprecated.php.

Props ramiy.
Fixes #37797.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/deprecated.php

    r38015 r38343  
    31703170        $file = get_attached_file( $file );
    31713171
    3172     if ( ! is_file( $file ) )
    3173         return sprintf(__('File “%s” doesn’t exist?'), $file);
     3172    if ( ! is_file( $file ) ) {
     3173        /* translators: %s: file name */
     3174        return sprintf( __( 'File “%s” doesn’t exist?' ), $file );
     3175    }
    31743176
    31753177    if ( ! function_exists('imagecreatefromstring') )
     
    31813183    $image = imagecreatefromstring( file_get_contents( $file ) );
    31823184
    3183     if ( !is_resource( $image ) )
    3184         return sprintf(__('File “%s” is not an image.'), $file);
     3185    if ( ! is_resource( $image ) ) {
     3186        /* translators: %s: file name */
     3187        return sprintf( __( 'File “%s” is not an image.' ), $file );
     3188    }
    31853189
    31863190    return $image;
Note: See TracChangeset for help on using the changeset viewer.