Changeset 11375


Ignore:
Timestamp:
Nov 1, 2010, 12:31:56 AM (11 years ago)
Author:
livings124
Message:

improve the message when no blocklist url is specified

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/BlocklistDownloader.m

    r11372 r11375  
    118118- (void) download: (NSURLDownload *) download didFailWithError: (NSError *) error
    119119{
    120     [fViewController setFailed: [error localizedDescription]];
     120    const BOOL blankURL = [[[[download request] URL] absoluteString] isEqualToString: @""];
     121    [fViewController setFailed: blankURL ? NSLocalizedString(@"An address of a blocklist is needed.", "blocklist fail message")
     122                                    : [error localizedDescription]];
    121123   
    122124    [[NSUserDefaults standardUserDefaults] setObject: [NSDate date] forKey: @"BlocklistNewLastUpdate"];
  • trunk/macosx/en.lproj/Localizable.strings

    r11225 r11375  
    176176/* Groups -> Button */
    177177"All Groups" = "All Groups";
     178
     179/* blocklist fail message */
     180"An address of a blocklist is needed." = "An address of a blocklist is needed.";
    178181
    179182/* Create torrent -> failed -> warning */
     
    912915"The move operation of \"%@\" cannot be done." = "The move operation of \"%@\" cannot be done.";
    913916
     917/* blocklist fail message */
     918"The specified blocklist file did not contain any valid rules." = "The specified blocklist file did not contain any valid rules.";
     919
    914920/* Torrent download failed -> message */
    915921"The torrent could not be downloaded from %@: %@." = "The torrent could not be downloaded from %1$@: %2$@.";
Note: See TracChangeset for help on using the changeset viewer.