Changeset 6040


Ignore:
Timestamp:
Jun 4, 2008, 9:18:42 PM (13 years ago)
Author:
livings124
Message:

update strings file; remove commented-out code

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/CreatorWindowController.m

    r6038 r6040  
    406406        trackerInfo[i].announce = (char *)[[fTrackers objectAtIndex: i] UTF8String];
    407407   
    408     /*if ([fTrackers count] > 0)
    409     {
    410         if ([fTracker rangeOfString: @"://"].location == NSNotFound)
    411         {
    412             NSString * fullTracker = [@"http://" stringByAppendingString: fTracker];
    413             [fTracker release];
    414             fTracker = [fullTracker retain];
    415         }
    416        
    417         #warning remove
    418         NSString * fTracker = [fTrackers objectAtIndex: 0];
    419        
    420         #warning move to adding
    421         if (!tr_httpIsValidURL([fTracker UTF8String]))
    422         {
    423             NSAlert * alert = [[[NSAlert alloc] init] autorelease];
    424             [alert addButtonWithTitle: NSLocalizedString(@"OK", "Create torrent -> warning -> button")];
    425             [alert setInformativeText: NSLocalizedString(@"Change the tracker address to create the torrent file.",
    426                                                         "Create torrent -> warning -> info")];
    427             [alert setAlertStyle: NSWarningAlertStyle];
    428            
    429             //check common reasons for failure
    430             NSString * prefix = [fTracker substringToIndex: [fTracker rangeOfString: @"://"].location];
    431             if ([prefix caseInsensitiveCompare: @"http"] != NSOrderedSame && [prefix caseInsensitiveCompare: @"https"] != NSOrderedSame)
    432                 [alert setMessageText: NSLocalizedString(@"The tracker address must begin with \"http://\" or \"https://\".",
    433                                                         "Create torrent -> warning -> message")];
    434             else
    435                 [alert setMessageText: NSLocalizedString(@"The tracker address is invalid.", "Create torrent -> warning -> message")];
    436            
    437             [alert beginSheetModalForWindow: [self window] modalDelegate: self didEndSelector: nil contextInfo: nil];
    438             return;
    439         }
    440        
    441         trackerInfo.tier = 0;
    442         trackerInfo.announce = (char *)[fTracker UTF8String];
    443     }*/
    444    
    445408    //store values
    446409    [fDefaults setObject: fTrackers forKey: @"CreatorTrackers"];
  • trunk/macosx/English.lproj/Localizable.strings

    r6006 r6040  
    223223"Cancel" = "Cancel";
    224224
    225 /* Create torrent -> warning -> info */
    226 "Change the tracker address to create the torrent file." = "Change the tracker address to create the torrent file.";
    227 
    228225/* Torrent Table -> tooltip */
    229226"Change transfer settings" = "Change transfer settings";
     
    484481/* Torrent file copy alert -> button
    485482   Move error alert -> button
    486    Create torrent -> warning -> button
    487483   Create torrent -> file already exists warning -> button
    488484   Save log alert panel -> button
     
    633629"remaining time unknown" = "remaining time unknown";
    634630
     631/* Preferences -> toolbar item title */
     632"Remote" = "Remote";
     633
    635634/* Remove built-in tracker alert -> button
    636635   Removal confirm panel -> button
     
    796795"The tracker address is blank." = "The tracker address is blank.";
    797796
    798 /* Create torrent -> warning -> message */
    799 "The tracker address is invalid." = "The tracker address is invalid.";
    800 
    801797/* Remove built-in tracker alert -> message */
    802798"The tracker address is part of the torrent file. Once removed, Transmission will no longer attempt to contact it." = "The tracker address is part of the torrent file. Once removed, Transmission will no longer attempt to contact it.";
    803 
    804 /* Create torrent -> warning -> message */
    805 "The tracker address must begin with \"http://\" or \"https://\"." = "The tracker address must begin with \"http://\" or \"https://\".";
    806799
    807800/* Torrent disk space alert -> message */
Note: See TracChangeset for help on using the changeset viewer.