Changeset 14177
- Timestamp:
- 04/21/2010 05:44:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r14043 r14177 31 31 $file_size = filesize( $file['tmp_name'] ); 32 32 if ( $space_left < $file_size ) 33 $file['error'] = sprintf( __( 'Not enough space to upload. %1$s K bneeded.' ), number_format( ($file_size - $space_left) /1024 ) );33 $file['error'] = sprintf( __( 'Not enough space to upload. %1$s KB needed.' ), number_format( ($file_size - $space_left) /1024 ) ); 34 34 if ( $file_size > ( 1024 * get_site_option( 'fileupload_maxk', 1500 ) ) ) 35 $file['error'] = sprintf(__('This file is too big. Files must be less than %1$s K bin size.'), get_site_option( 'fileupload_maxk', 1500 ) );35 $file['error'] = sprintf(__('This file is too big. Files must be less than %1$s KB in size.'), get_site_option( 'fileupload_maxk', 1500 ) ); 36 36 if ( upload_is_user_over_quota( false ) ) { 37 37 $file['error'] = __( 'You have used your space quota. Please delete files before uploading.' ); … … 448 448 if ( $space > 1000 ) { 449 449 $space = number_format( $space / 1024 ); 450 /* translators: Gigabytes */ 450 451 $space .= __( 'GB' ); 451 452 } else { 453 /* translators: Megabytes */ 452 454 $space .= __( 'MB' ); 453 455 }
Note: See TracChangeset
for help on using the changeset viewer.