From ffd70de1b8d7bcc64b1a1707a46faffd3acc3efd Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 28 Apr 2008 18:51:38 +0000 Subject: [PATCH] even more string cleanup --- macosx/CreatorWindowController.m | 7 +++---- macosx/English.lproj/Localizable.strings | Bin 57492 -> 57286 bytes 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/macosx/CreatorWindowController.m b/macosx/CreatorWindowController.m index b1b7e9b14..b621fe8fa 100644 --- a/macosx/CreatorWindowController.m +++ b/macosx/CreatorWindowController.m @@ -202,12 +202,11 @@ trackerString = [@"http://" stringByAppendingString: trackerString]; //parse tracker string - if (tr_httpParseURL([trackerString UTF8String], -1, NULL, NULL, NULL)) + if (!tr_httpIsValidURL([trackerString UTF8String])) { NSAlert * alert = [[[NSAlert alloc] init] autorelease]; [alert addButtonWithTitle: NSLocalizedString(@"OK", "Create torrent -> warning -> button")]; - [alert setMessageText: NSLocalizedString(@"The tracker address cannot be blank.", "Create torrent -> warning -> title")]; - [alert setInformativeText: NSLocalizedString(@"Change the tracker address to create the torrent.", + [alert setInformativeText: NSLocalizedString(@"Change the tracker address to create the torrent file.", "Create torrent -> warning -> info")]; [alert setAlertStyle: NSWarningAlertStyle]; @@ -235,7 +234,7 @@ "Create torrent -> file already exists warning -> title")]; [alert setInformativeText: [NSString stringWithFormat: NSLocalizedString(@"A file with the name \"%@\" already exists in the directory \"%@\". " - "Choose a new name or directory to create the torrent.", + "Choose a new name or directory to create the torrent file.", "Create torrent -> file already exists warning -> warning"), [pathComponents objectAtIndex: count-1], [pathComponents objectAtIndex: count-2]]]; [alert setAlertStyle: NSWarningAlertStyle]; diff --git a/macosx/English.lproj/Localizable.strings b/macosx/English.lproj/Localizable.strings index e61e5db58d4d2e6dd3496f49d1db720f14fe5665..852bb05d1e9d0823801896533e7fb946719fb1c4 100644 GIT binary patch delta 142 zcmbPokonkt<_&8kCkG^mP2M5-WAcJoQkxG*t&sr>#8?PSmN5?i2~IBX5!n30dl6#xJL delta 194 zcmX@MpLxnb<_&8kCl^TzO+F#{Y4WEdQk(BdEs~ksWuCLiVhhLQgc(kg7dUPMVwuSo z92QKzWhb(^#wo#Qa$RZP