WordPress.org

Make WordPress Core

Changeset 14177


Ignore:
Timestamp:
04/21/2010 05:44:21 PM (8 years ago)
Author:
nbachiyski
Message:

Help translators with meaning of MB and GB. They are definitely not Macbook and Great Britain

File:
1 edited

Legend:

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

    r14043 r14177  
    3131    $file_size = filesize( $file['tmp_name'] );
    3232    if ( $space_left < $file_size )
    33         $file['error'] = sprintf( __( 'Not enough space to upload. %1$s Kb needed.' ), 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 ) );
    3434    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 Kb in 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 ) );
    3636    if ( upload_is_user_over_quota( false ) ) {
    3737        $file['error'] = __( 'You have used your space quota. Please delete files before uploading.' );
     
    448448    if ( $space > 1000 ) {
    449449        $space = number_format( $space / 1024 );
     450        /* translators: Gigabytes */
    450451        $space .= __( 'GB' );
    451452    } else {
     453        /* translators: Megabytes */       
    452454        $space .= __( 'MB' );
    453455    }
Note: See TracChangeset for help on using the changeset viewer.