Changeset 2883


Ignore:
Timestamp:
Aug 20, 2007, 7:49:36 PM (15 years ago)
Author:
livings124
Message:

if there is no error message but an error, simply state "Error", and small change with a mutable status string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r2878 r2883  
    420420    //create strings for error or stalled
    421421    if (fError)
    422         [statusString setString: [NSLocalizedString(@"Error: ", "Torrent -> status string")
     422    {
     423        NSString * errorString = [self errorMessage];
     424        if (!errorString || [errorString isEqualToString: @""])
     425            [statusString setString: NSLocalizedString(@"Error", "Torrent -> status string")];
     426        else
     427            [statusString setString: [NSLocalizedString(@"Error: ", "Torrent -> status string")
    423428                                    stringByAppendingString: [self errorMessage]]];
     429    }
    424430    else if (fStalled)
    425         [statusString setString: [NSLocalizedString(@"Stalled, ", "Torrent -> status string")
    426                                     stringByAppendingString: statusString]];
     431        [statusString insertString: NSLocalizedString(@"Stalled, ", "Torrent -> status string") atIndex: 0];
    427432    else;
    428433   
Note: See TracChangeset for help on using the changeset viewer.