Changeset 10452


Ignore:
Timestamp:
Apr 6, 2010, 2:53:07 AM (12 years ago)
Author:
livings124
Message:

in the "state" field of the inspector, for paused transfers indicate if waiting in the queue or finished

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r10438 r10452  
    11361136    {
    11371137        case TR_STATUS_STOPPED:
    1138             return NSLocalizedString(@"Paused", "Torrent -> status string");
     1138        {
     1139            NSString * string = NSLocalizedString(@"Paused", "Torrent -> status string");
     1140           
     1141            NSString * extra = nil;
     1142            if (fWaitToStart)
     1143            {
     1144                extra = ![self allDownloaded]
     1145                        ? NSLocalizedString(@"Waiting to download", "Torrent -> status string")
     1146                        : NSLocalizedString(@"Waiting to seed", "Torrent -> status string");
     1147            }
     1148            else if ([self isFinishedSeeding])
     1149                extra = NSLocalizedString(@"Seeding complete", "Torrent -> status string");
     1150            else;
     1151       
     1152            return extra ? [string stringByAppendingFormat: @" (%@)", extra] : string;
     1153        }
     1154       
     1155        case TR_STATUS_CHECK_WAIT:
     1156            return [NSLocalizedString(@"Waiting to check existing data", "Torrent -> status string") stringByAppendingEllipsis];
    11391157
    11401158        case TR_STATUS_CHECK:
    11411159            return [NSString localizedStringWithFormat: @"%@ (%.2f%%)",
    11421160                    NSLocalizedString(@"Checking existing data", "Torrent -> status string"), 100.0 * [self checkingProgress]];
    1143        
    1144         case TR_STATUS_CHECK_WAIT:
    1145             return [NSLocalizedString(@"Waiting to check existing data", "Torrent -> status string") stringByAppendingEllipsis];
    11461161
    11471162        case TR_STATUS_DOWNLOAD:
Note: See TracChangeset for help on using the changeset viewer.