]> granicus.if.org Git - transmission/commitdiff
update strings file; remove commented-out code
authorMitchell Livingston <livings124@transmissionbt.com>
Wed, 4 Jun 2008 21:18:42 +0000 (21:18 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Wed, 4 Jun 2008 21:18:42 +0000 (21:18 +0000)
macosx/CreatorWindowController.m
macosx/English.lproj/Localizable.strings

index dfbc229ef488388e0ca6691a32dca9623b817f72..da3c72f087961b26fd32ac70da2d9aa7d4ec00e8 100644 (file)
     for (i = 0; i < [fTrackers count]; i++)
         trackerInfo[i].announce = (char *)[[fTrackers objectAtIndex: i] UTF8String];
     
-    /*if ([fTrackers count] > 0)
-    {
-        if ([fTracker rangeOfString: @"://"].location == NSNotFound)
-        {
-            NSString * fullTracker = [@"http://" stringByAppendingString: fTracker];
-            [fTracker release];
-            fTracker = [fullTracker retain];
-        }
-        
-        #warning remove
-        NSString * fTracker = [fTrackers objectAtIndex: 0];
-        
-        #warning move to adding
-        if (!tr_httpIsValidURL([fTracker UTF8String]))
-        {
-            NSAlert * alert = [[[NSAlert alloc] init] autorelease];
-            [alert addButtonWithTitle: NSLocalizedString(@"OK", "Create torrent -> warning -> button")];
-            [alert setInformativeText: NSLocalizedString(@"Change the tracker address to create the torrent file.",
-                                                        "Create torrent -> warning -> info")];
-            [alert setAlertStyle: NSWarningAlertStyle];
-            
-            //check common reasons for failure
-            NSString * prefix = [fTracker substringToIndex: [fTracker rangeOfString: @"://"].location];
-            if ([prefix caseInsensitiveCompare: @"http"] != NSOrderedSame && [prefix caseInsensitiveCompare: @"https"] != NSOrderedSame)
-                [alert setMessageText: NSLocalizedString(@"The tracker address must begin with \"http://\" or \"https://\".",
-                                                        "Create torrent -> warning -> message")];
-            else
-                [alert setMessageText: NSLocalizedString(@"The tracker address is invalid.", "Create torrent -> warning -> message")];
-            
-            [alert beginSheetModalForWindow: [self window] modalDelegate: self didEndSelector: nil contextInfo: nil];
-            return;
-        }
-        
-        trackerInfo.tier = 0;
-        trackerInfo.announce = (char *)[fTracker UTF8String];
-    }*/
-    
     //store values
     [fDefaults setObject: fTrackers forKey: @"CreatorTrackers"];
     [fDefaults setBool: [fPrivateCheck state] == NSOnState forKey: @"CreatorPrivate"];
index c32d05a11793f3f2c9c682baa0ea6756ab0a9271..8ecaba2d342bf1498187f1a27c7c4d95290a2cd3 100644 (file)
Binary files a/macosx/English.lproj/Localizable.strings and b/macosx/English.lproj/Localizable.strings differ