Make WordPress Core


Ignore:
Timestamp:
11/21/2016 02:45:53 AM (9 years ago)
Author:
johnbillion
Message:

I18n: Introduce more translator comments for strings that contain placeholders but don't have an accompanying translator comment.

See #38882

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ms.php

    r38961 r39326  
    3030    $file_size = filesize( $file['tmp_name'] );
    3131    if ( $space_left < $file_size ) {
     32        /* translators: 1: Required disk space in kilobytes */
    3233        $file['error'] = sprintf( __( 'Not enough space to upload. %1$s KB needed.' ), number_format( ( $file_size - $space_left ) / KB_IN_BYTES ) );
    3334    }
    3435
    3536    if ( $file_size > ( KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 ) ) ) {
     37        /* translators: 1: Maximum allowed file size in kilobytes */
    3638        $file['error'] = sprintf( __( 'This file is too big. Files must be less than %1$s KB in size.' ), get_site_option( 'fileupload_maxk', 1500 ) );
    3739    }
     
    475477    }
    476478    ?>
    477     <strong><?php printf( __( 'Used: %1$s%% of %2$s' ), number_format( $percent_used ), $space ); ?></strong>
     479    <strong><?php
     480        /* translators: Storage space that's been used. 1: Percentage of used space, 2: Total space allowed in megabytes or gigabytes */
     481        printf( __( 'Used: %1$s%% of %2$s' ), number_format( $percent_used ), $space );
     482    ?></strong>
    478483    <?php
    479484}
Note: See TracChangeset for help on using the changeset viewer.