Changeset 1112


Ignore:
Timestamp:
Nov 20, 2006, 1:43:51 AM (16 years ago)
Author:
livings124
Message:

a clearer explanation when suggested name isn't a torrent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r1111 r1112  
    491491
    492492- (void) download: (NSURLDownload *) download decideDestinationWithSuggestedFilename: (NSString *) suggestedName
    493 {
     493{NSLog(suggestedName);
    494494    if ([[suggestedName pathExtension] caseInsensitiveCompare: @"torrent"] != NSOrderedSame)
    495495    {
     
    498498        NSRunAlertPanel(NSLocalizedString(@"Torrent download failed",
    499499            @"Download not a torrent -> title"), [NSString stringWithFormat:
    500             NSLocalizedString(@"It appears that the file from %@ is not a torrent file.",
    501             @"Download not a torrent -> message"), [[[download request] URL] absoluteString]],
     500            NSLocalizedString(@"It appears that the file \"%@\" from %@ is not a torrent file.",
     501            @"Download not a torrent -> message"), suggestedName, [[[download request] URL] absoluteString]],
    502502            NSLocalizedString(@"OK", @"Download not a torrent -> button"), nil, nil);
    503503       
Note: See TracChangeset for help on using the changeset viewer.