Ignore:
Timestamp:
Jul 10, 2010, 2:31:05 AM (12 years ago)
Author:
livings124
Message:

when localizing units of speed, localize the full speed string; localize the speed & size strings passed to libtransmission

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r10979 r10988  
    334334        tr_bencDictAddBool(&settings, TR_PREFS_KEY_RPC_WHITELIST_ENABLED,  [fDefaults boolForKey: @"RPCUseWhitelist"]);
    335335       
    336         #warning localize and make consistent
    337         tr_formatter_size_init(1024, "KB", "MB", "GB", "TB");
    338         tr_formatter_speed_init(1024, "KB/s", "MB/s", "GB/s", "TB/s");
    339         tr_formatter_mem_init(1024, "KB", "MB", "GB", "TB");
     336        tr_formatter_size_init(1024, [NSLocalizedString(@"KB", "File size - kilobytes") UTF8String],
     337                                    [NSLocalizedString(@"MB", "File size - megabytes") UTF8String],
     338                                    [NSLocalizedString(@"GB", "File size - gigabytes") UTF8String],
     339                                    [NSLocalizedString(@"TB", "File size - terabytes") UTF8String]);
     340
     341        tr_formatter_speed_init(1024, [NSLocalizedString(@"KB/s", "Transfer speed (kilobytes per second)") UTF8String],
     342                                    [NSLocalizedString(@"MB/s", "Transfer speed (megabytes per second)") UTF8String],
     343                                    [NSLocalizedString(@"GB/s", "Transfer speed (gigabytes per second)") UTF8String],
     344                                    [NSLocalizedString(@"TB/s", "Transfer speed (terabytes per second)") UTF8String]); //why not?
     345
     346        tr_formatter_mem_init(1024, [NSLocalizedString(@"KB", "Memory size - kilobytes") UTF8String],
     347                                    [NSLocalizedString(@"MB", "Memory size - megabytes") UTF8String],
     348                                    [NSLocalizedString(@"GB", "Memory size - gigabytes") UTF8String],
     349                                    [NSLocalizedString(@"TB", "Memory size - terabytes") UTF8String]);
    340350       
    341351        fLib = tr_sessionInit("macosx", configDir, YES, &settings);
Note: See TracChangeset for help on using the changeset viewer.