WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (7 weeks ago)
Author:
SergeyBiryukov
Message:

I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php

    r45811 r45932  
    804804        $file_size = filesize( $file['tmp_name'] );
    805805        if ( $space_left < $file_size ) {
    806             /* translators: %s: required disk space in kilobytes */
     806            /* translators: %s: Required disk space in kilobytes. */
    807807            return new WP_Error( 'rest_upload_limited_space', sprintf( __( 'Not enough space to upload. %s KB needed.' ), number_format( ( $file_size - $space_left ) / KB_IN_BYTES ) ), array( 'status' => 400 ) );
    808808        }
    809809
    810810        if ( $file_size > ( KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 ) ) ) {
    811             /* translators: %s: maximum allowed file size in kilobytes */
     811            /* translators: %s: Maximum allowed file size in kilobytes. */
    812812            return new WP_Error( 'rest_upload_file_too_big', sprintf( __( 'This file is too big. Files must be less than %s KB in size.' ), get_site_option( 'fileupload_maxk', 1500 ) ), array( 'status' => 400 ) );
    813813        }
Note: See TracChangeset for help on using the changeset viewer.