Make WordPress Core

Changeset 47330


Ignore:
Timestamp:
02/20/2020 05:16:21 PM (5 years ago)
Author:
SergeyBiryukov
Message:

I18N: Replace upload_max_filesize, php.ini, MAX_FILE_SIZE with placeholders in upload error strings.

Props ramiy.
Fixes #48869.

File:
1 edited

Legend:

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

    r47219 r47330  
    766766        $upload_error_strings = array(
    767767            false,
    768             __( 'The uploaded file exceeds the upload_max_filesize directive in php.ini.' ),
    769             __( 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.' ),
     768            sprintf(
     769                /* translators: 1: upload_max_filesize, 2: php.ini */
     770                __( 'The uploaded file exceeds the %1$s directive in %2$s.' ),
     771                'upload_max_filesize',
     772                'php.ini'
     773            ),
     774            sprintf(
     775                /* translators: %s: MAX_FILE_SIZE */
     776                __( 'The uploaded file exceeds the %s directive that was specified in the HTML form.' ),
     777                'MAX_FILE_SIZE'
     778            ),
    770779            __( 'The uploaded file was only partially uploaded.' ),
    771780            __( 'No file was uploaded.' ),
Note: See TracChangeset for help on using the changeset viewer.