Ignore:
Timestamp:
Sep 10, 2012, 3:21:07 AM (9 years ago)
Author:
livings124
Message:

when generating the size units for libtransmission, use an arbitrary size instead of 0 to avoid potential pluralization special cases in some localizations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r13493 r13494  
    319319           
    320320            [unitFormatter setAllowedUnits: NSByteCountFormatterUseKB];
    321             kbString = [unitFormatter stringFromByteCount: 0];
     321            kbString = [unitFormatter stringFromByteCount: 17]; //use a random value to avoid possible pluralization issues with 1 or 0
    322322           
    323323            [unitFormatter setAllowedUnits: NSByteCountFormatterUseMB];
    324             mbString = [unitFormatter stringFromByteCount: 0];
     324            mbString = [unitFormatter stringFromByteCount: 17];
    325325           
    326326            [unitFormatter setAllowedUnits: NSByteCountFormatterUseGB];
    327             gbString = [unitFormatter stringFromByteCount: 0];
     327            gbString = [unitFormatter stringFromByteCount: 17];
    328328           
    329329            [unitFormatter setAllowedUnits: NSByteCountFormatterUseTB];
    330             tbString = [unitFormatter stringFromByteCount: 0];
     330            tbString = [unitFormatter stringFromByteCount: 17];
    331331           
    332332            [unitFormatter release];
Note: See TracChangeset for help on using the changeset viewer.