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-attachments.php

    r12572 r12588  
    641641        array(
    642642            'queue_limit_exceeded'      => __( 'You have attempted to queue too many files.', 'buddypress' ),
     643
     644            /* translators: %s: File name. */
    643645            'file_exceeds_size_limit'   => __( '%s exceeds the maximum upload size for this site.', 'buddypress' ),
    644646            'zero_byte_file'            => __( 'This file is empty. Please try another.', 'buddypress' ),
     
    652654            'http_error'                => __( 'HTTP error.', 'buddypress' ),
    653655            'upload_failed'             => __( 'Upload failed.', 'buddypress' ),
     656
     657            /* translators: 1: Opening link tag, 2: Closing link tag. */
    654658            'big_upload_failed'         => __( 'Please try uploading this file with the %1$sbrowser uploader%2$s.', 'buddypress' ),
     659
     660            /* translators: %s: File name. */
    655661            'big_upload_queued'         => __( '%s exceeds the maximum upload size for the multi-file uploader when used in your browser.', 'buddypress' ),
    656662            'io_error'                  => __( 'IO error.', 'buddypress' ),
     
    661667            'crunching'                 => __( 'Crunching…', 'buddypress' ),
    662668            'unique_file_warning'       => __( 'Make sure to upload a unique file', 'buddypress' ),
     669
     670            /* translators: %s: File name. */
    663671            'error_uploading'           => __( '“%s” has failed to upload.', 'buddypress' ),
    664672            'has_avatar_warning'        => __( 'If you'd like to delete the existing profile photo but not upload a new one, please use the delete tab.', 'buddypress' )
     
    831839        $strings['cover_image_warnings'] = apply_filters( 'bp_attachments_cover_image_ui_warnings', array(
    832840            'dimensions'  => sprintf(
    833                     __( 'For better results, make sure to upload an image that is larger than %1$spx wide, and %2$spx tall.', 'buddypress' ),
    834                     (int) $cover_dimensions['width'],
    835                     (int) $cover_dimensions['height']
    836                 ),
     841                /* translators: 1: the advised width size in pixels. 2: the advised height size in pixels. */
     842                __( 'For better results, make sure to upload an image that is larger than %1$spx wide, and %2$spx tall.', 'buddypress' ),
     843                (int) $cover_dimensions['width'],
     844                (int) $cover_dimensions['height']
     845            ),
    837846        ) );
    838847    }
     
    13541363        bp_attachments_json_response( false, $is_html4, array(
    13551364            'type'    => 'upload_error',
    1356             'message' => sprintf( __( 'Upload Failed! Error was: %s', 'buddypress' ), $uploaded['error'] ),
     1365            'message' => sprintf(
     1366                /* translators: %s: the upload error message */
     1367                __( 'Upload Failed! Error was: %s', 'buddypress' ),
     1368                $uploaded['error']
     1369            ),
    13571370        ) );
    13581371    }
Note: See TracChangeset for help on using the changeset viewer.