Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/28/2020 01:35:36 PM (4 years ago)
Author:
imath
Message:

BP Core: add missing /* translators */ comments

See #8260

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-attachment.php

    r12547 r12588  
    160160            0 => __( 'The file was uploaded successfully', 'buddypress' ),
    161161            1 => __( 'The uploaded file exceeds the maximum allowed file size for this site', 'buddypress' ),
     162
     163            /* translators: %s: Max file size for the file */
    162164            2 => sprintf( __( 'The uploaded file exceeds the maximum allowed file size of: %s', 'buddypress' ), size_format( $this->original_max_filesize ) ),
    163165            3 => __( 'The uploaded file was only partially uploaded.', 'buddypress' ),
     
    501503
    502504            if ( empty( $ext ) || empty( $supported_image_types[ $ext ] ) ) {
    503                 $wp_error->add( 'crop_error', sprintf( __( 'Cropping the file failed: %s is not a supported image file.', 'buddypress' ), $file['error'] ) );
     505                $wp_error->add(
     506                    'crop_error',
     507                    sprintf(
     508                        /* translators: %s: image file extension */
     509                        __( 'Cropping the file failed: %s is not a supported image file.', 'buddypress' ),
     510                        $file['error']
     511                    )
     512                );
     513
    504514                return $wp_error;
    505515            }
Note: See TracChangeset for help on using the changeset viewer.