Changeset 12588 for trunk/src/bp-core/bp-core-avatars.php
- Timestamp:
- 03/28/2020 01:35:36 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-avatars.php
r12565 r12588 912 912 // In case of an error, stop the process and display a feedback to the user. 913 913 if ( ! empty( $bp->avatar_admin->original['error'] ) ) { 914 /* translators: %s: the upload error message */ 914 915 bp_core_add_message( sprintf( __( 'Upload Failed! Error was: %s', 'buddypress' ), $bp->avatar_admin->original['error'] ), 'error' ); 915 916 return false; … … 940 941 // Check for WP_Error on what should be an image. 941 942 if ( is_wp_error( $bp->avatar_admin->image->dir ) ) { 943 /* translators: %s: the upload error message */ 942 944 bp_core_add_message( sprintf( __( 'Upload failed! Error was: %s', 'buddypress' ), $bp->avatar_admin->image->dir->get_error_message() ), 'error' ); 943 945 return false; … … 946 948 // If the uploaded image is smaller than the "full" dimensions, throw a warning. 947 949 if ( $avatar_attachment->is_too_small( $bp->avatar_admin->image->file ) ) { 948 bp_core_add_message( sprintf( __( 'You have selected an image that is smaller than recommended. For best results, upload a picture larger than %d x %d pixels.', 'buddypress' ), bp_core_avatar_full_width(), bp_core_avatar_full_height() ), 'error' ); 950 /* translators: 1: the advised width size in pixels. 2: the advised height size in pixels. */ 951 bp_core_add_message( sprintf( __( 'You have selected an image that is smaller than recommended. For best results, upload a picture larger than %1$d x %2$d pixels.', 'buddypress' ), bp_core_avatar_full_width(), bp_core_avatar_full_height() ), 'error' ); 949 952 } 950 953
Note: See TracChangeset
for help on using the changeset viewer.