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/bp-core-avatars.php

    r12565 r12588  
    912912    // In case of an error, stop the process and display a feedback to the user.
    913913    if ( ! empty( $bp->avatar_admin->original['error'] ) ) {
     914        /* translators: %s: the upload error message */
    914915        bp_core_add_message( sprintf( __( 'Upload Failed! Error was: %s', 'buddypress' ), $bp->avatar_admin->original['error'] ), 'error' );
    915916        return false;
     
    940941    // Check for WP_Error on what should be an image.
    941942    if ( is_wp_error( $bp->avatar_admin->image->dir ) ) {
     943        /* translators: %s: the upload error message */
    942944        bp_core_add_message( sprintf( __( 'Upload failed! Error was: %s', 'buddypress' ), $bp->avatar_admin->image->dir->get_error_message() ), 'error' );
    943945        return false;
     
    946948    // If the uploaded image is smaller than the "full" dimensions, throw a warning.
    947949    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' );
    949952    }
    950953
Note: See TracChangeset for help on using the changeset viewer.