Ignore:
Timestamp:
Sep 12, 2010, 10:20:19 PM (12 years ago)
Author:
livings124
Message:

#3518 Snow Leopard systems should show file sizes and speeds in base 10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r11178 r11207  
    335335        tr_bencDictAddBool(&settings, TR_PREFS_KEY_START, [fDefaults boolForKey: @"AutoStartDownload"]);
    336336       
    337         tr_formatter_size_init(1024, [NSLocalizedString(@"KB", "File size - kilobytes") UTF8String],
     337        tr_formatter_size_init([NSApp isOnSnowLeopardOrBetter] ? 1000 : 1024,
     338                                    [NSLocalizedString(@"KB", "File size - kilobytes") UTF8String],
    338339                                    [NSLocalizedString(@"MB", "File size - megabytes") UTF8String],
    339340                                    [NSLocalizedString(@"GB", "File size - gigabytes") UTF8String],
    340341                                    [NSLocalizedString(@"TB", "File size - terabytes") UTF8String]);
    341342
    342         tr_formatter_speed_init(1024, [NSLocalizedString(@"KB/s", "Transfer speed (kilobytes per second)") UTF8String],
     343        tr_formatter_speed_init([NSApp isOnSnowLeopardOrBetter] ? 1000 : 1024,
     344                                    [NSLocalizedString(@"KB/s", "Transfer speed (kilobytes per second)") UTF8String],
    343345                                    [NSLocalizedString(@"MB/s", "Transfer speed (megabytes per second)") UTF8String],
    344346                                    [NSLocalizedString(@"GB/s", "Transfer speed (gigabytes per second)") UTF8String],
Note: See TracChangeset for help on using the changeset viewer.