WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/11/2018 04:43:59 PM (4 years ago)
Author:
SergeyBiryukov
Message:

I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders.

Add missing translator comments in WP_Theme_Install_List_Table and wp_notify_postauthor().
Add missing commas in some translator comments.

Fixes #43523.

File:
1 edited

Legend:

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

    r42343 r42827  
    3333    $file_size = filesize( $file['tmp_name'] );
    3434    if ( $space_left < $file_size ) {
    35         /* translators: 1: Required disk space in kilobytes */
    36         $file['error'] = sprintf( __( 'Not enough space to upload. %1$s KB needed.' ), number_format( ( $file_size - $space_left ) / KB_IN_BYTES ) );
     35        /* translators: %s: required disk space in kilobytes */
     36        $file['error'] = sprintf( __( 'Not enough space to upload. %s KB needed.' ), number_format( ( $file_size - $space_left ) / KB_IN_BYTES ) );
    3737    }
    3838
    3939    if ( $file_size > ( KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 ) ) ) {
    40         /* translators: 1: Maximum allowed file size in kilobytes */
    41         $file['error'] = sprintf( __( 'This file is too big. Files must be less than %1$s KB in size.' ), get_site_option( 'fileupload_maxk', 1500 ) );
     40        /* translators: %s: maximum allowed file size in kilobytes */
     41        $file['error'] = sprintf( __( 'This file is too big. Files must be less than %s KB in size.' ), get_site_option( 'fileupload_maxk', 1500 ) );
    4242    }
    4343
Note: See TracChangeset for help on using the changeset viewer.