mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
I18n: Introduce more translator comments for strings that contain placeholders but don't have an accompanying translator comment.
See #38882 git-svn-id: https://develop.svn.wordpress.org/trunk@39326 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -29,10 +29,12 @@ function check_upload_size( $file ) {
|
||||
|
||||
$file_size = filesize( $file['tmp_name'] );
|
||||
if ( $space_left < $file_size ) {
|
||||
/* translators: 1: Required disk space in kilobytes */
|
||||
$file['error'] = sprintf( __( 'Not enough space to upload. %1$s KB needed.' ), number_format( ( $file_size - $space_left ) / KB_IN_BYTES ) );
|
||||
}
|
||||
|
||||
if ( $file_size > ( KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 ) ) ) {
|
||||
/* translators: 1: Maximum allowed file size in kilobytes */
|
||||
$file['error'] = sprintf( __( 'This file is too big. Files must be less than %1$s KB in size.' ), get_site_option( 'fileupload_maxk', 1500 ) );
|
||||
}
|
||||
|
||||
@@ -474,7 +476,10 @@ function display_space_usage() {
|
||||
$space .= __( 'MB' );
|
||||
}
|
||||
?>
|
||||
<strong><?php printf( __( 'Used: %1$s%% of %2$s' ), number_format( $percent_used ), $space ); ?></strong>
|
||||
<strong><?php
|
||||
/* translators: Storage space that's been used. 1: Percentage of used space, 2: Total space allowed in megabytes or gigabytes */
|
||||
printf( __( 'Used: %1$s%% of %2$s' ), number_format( $percent_used ), $space );
|
||||
?></strong>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user