mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +00:00
even more string cleanup
This commit is contained in:
parent
882abcb9bb
commit
ffd70de1b8
2 changed files with 3 additions and 4 deletions
|
@ -202,12 +202,11 @@
|
||||||
trackerString = [@"http://" stringByAppendingString: trackerString];
|
trackerString = [@"http://" stringByAppendingString: trackerString];
|
||||||
|
|
||||||
//parse tracker string
|
//parse tracker string
|
||||||
if (tr_httpParseURL([trackerString UTF8String], -1, NULL, NULL, NULL))
|
if (!tr_httpIsValidURL([trackerString UTF8String]))
|
||||||
{
|
{
|
||||||
NSAlert * alert = [[[NSAlert alloc] init] autorelease];
|
NSAlert * alert = [[[NSAlert alloc] init] autorelease];
|
||||||
[alert addButtonWithTitle: NSLocalizedString(@"OK", "Create torrent -> warning -> button")];
|
[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 file.",
|
||||||
[alert setInformativeText: NSLocalizedString(@"Change the tracker address to create the torrent.",
|
|
||||||
"Create torrent -> warning -> info")];
|
"Create torrent -> warning -> info")];
|
||||||
[alert setAlertStyle: NSWarningAlertStyle];
|
[alert setAlertStyle: NSWarningAlertStyle];
|
||||||
|
|
||||||
|
@ -235,7 +234,7 @@
|
||||||
"Create torrent -> file already exists warning -> title")];
|
"Create torrent -> file already exists warning -> title")];
|
||||||
[alert setInformativeText: [NSString stringWithFormat:
|
[alert setInformativeText: [NSString stringWithFormat:
|
||||||
NSLocalizedString(@"A file with the name \"%@\" already exists in the directory \"%@\". "
|
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"),
|
"Create torrent -> file already exists warning -> warning"),
|
||||||
[pathComponents objectAtIndex: count-1], [pathComponents objectAtIndex: count-2]]];
|
[pathComponents objectAtIndex: count-1], [pathComponents objectAtIndex: count-2]]];
|
||||||
[alert setAlertStyle: NSWarningAlertStyle];
|
[alert setAlertStyle: NSWarningAlertStyle];
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue