mirror of
https://github.com/transmission/transmission
synced 2025-02-20 21:26:53 +00:00
eliminate some localized strings
This commit is contained in:
parent
ed798be5ac
commit
308a522845
3 changed files with 737 additions and 4035 deletions
|
@ -191,10 +191,8 @@
|
|||
|
||||
- (void) controlTextDidChange: (NSNotification *) notification
|
||||
{
|
||||
if ([notification object] != fTrackerField)
|
||||
return;
|
||||
|
||||
[self updateEnableCreateButtonForTrackerField];
|
||||
if ([notification object] == fTrackerField)
|
||||
[self updateEnableCreateButtonForTrackerField];
|
||||
}
|
||||
|
||||
- (void) create: (id) sender
|
||||
|
@ -214,8 +212,7 @@
|
|||
[alert setAlertStyle: NSWarningAlertStyle];
|
||||
|
||||
//check common reasons for failure
|
||||
NSRange prefixRange = [trackerString rangeOfString: @"://"];
|
||||
NSString * prefix = [trackerString substringToIndex: prefixRange.location];
|
||||
NSString * prefix = [trackerString substringToIndex: [trackerString 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")];
|
||||
|
|
File diff suppressed because it is too large
Load diff
Binary file not shown.
Loading…
Reference in a new issue