Ignore:
Timestamp:
Oct 24, 2006, 8:34:13 PM (16 years ago)
Author:
livings124
Message:

Use localized strings where necessary. Also a fix for the port checker. Thanks to Cédric Luthi for these.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/StringAdditions.m

    r839 r1026  
    4545{
    4646    if (size < 1024)
    47         return [NSString stringWithFormat: @"%lld bytes", size];
     47        return [NSString stringWithFormat: NSLocalizedString(@"%lld bytes", "File size"), size];
    4848
    4949    float convertedSize = (float) size;
     
    5252    {
    5353        convertedSize /= 1024.0;
    54         unit = @" KB";
     54        unit = NSLocalizedString(@" KB", "File size (beware of leading space)");
    5555    }
    5656    else if (size < 1073741824)
    5757    {
    5858        convertedSize /= 1048576.0;
    59         unit = @" MB";
     59        unit = NSLocalizedString(@" MB", "File size (beware of leading space)");
    6060    }
    6161    else
    6262    {
    6363        convertedSize /= 1073741824.0;
    64         unit = @" GB";
     64        unit = NSLocalizedString(@" GB", "File size (beware of leading space)");
    6565    }
    6666
     
    7979+ (NSString *) stringForSpeed: (float) speed
    8080{
    81     return [[self stringForSpeedAbbrev: speed] stringByAppendingString: @"B/s"];
     81    return [[self stringForSpeedAbbrev: speed] stringByAppendingString: NSLocalizedString(@"B/s", "Transfer speed (Bytes per second)")];
    8282}
    8383
Note: See TracChangeset for help on using the changeset viewer.