Ignore:
Timestamp:
Sep 11, 2012, 12:46:32 AM (9 years ago)
Author:
livings124
Message:

Refine the logic for determining the "partial/full file size" string. It's better, but not perfect, depending on how languages are localized for special cases. A partial size of zero will now always hide the unit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r13494 r13495  
    319319           
    320320            [unitFormatter setAllowedUnits: NSByteCountFormatterUseKB];
    321             kbString = [unitFormatter stringFromByteCount: 17]; //use a random value to avoid possible pluralization issues with 1 or 0
     321            kbString = [unitFormatter stringFromByteCount: 17]; //use a random value to avoid possible pluralization issues with 1 or 0 (an example is if we use 1 for bytes, we'd get "byte" when we'd want "bytes" for the generic libtransmission value at least)
    322322           
    323323            [unitFormatter setAllowedUnits: NSByteCountFormatterUseMB];
Note: See TracChangeset for help on using the changeset viewer.