Changeset 2239 for trunk/macosx/Controller.m
- Timestamp:
- Jun 29, 2007, 11:54:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r2238 r2239 465 465 "Debug log alert -> informative message")]; 466 466 [alert addButtonWithTitle: NSLocalizedString(@"OK", "Debug log alert -> button")]; 467 [alert addButtonWithTitle: NSLocalizedString(@"Don't RemindAgain", "Debug log alert -> button")];467 [alert addButtonWithTitle: NSLocalizedString(@"Don't Alert Again", "Debug log alert -> button")]; 468 468 469 469 if ([alert runModal] == NSAlertSecondButtonReturn) … … 897 897 - (void) duplicateOpenAlert: (NSString *) name 898 898 { 899 if (![fDefaults boolForKey: @"WarningDuplicate"]) 900 return; 901 899 902 NSAlert * alert = [[NSAlert alloc] init]; 900 [alert addButtonWithTitle: NSLocalizedString(@"OK", "Open duplicate alert -> button")]; 901 [alert setMessageText: [NSString stringWithFormat: NSLocalizedString(@"Transfer of \"%@\" is already running.", 903 [alert setMessageText: [NSString stringWithFormat: NSLocalizedString(@"A transfer of \"%@\" is already running.", 902 904 "Open duplicate alert -> title"), name]]; 903 905 [alert setInformativeText: 904 906 NSLocalizedString(@"The torrent file cannot be opened because it is a duplicate of an already running transfer.", 905 907 "Open duplicate alert -> message")]; 908 [alert addButtonWithTitle: NSLocalizedString(@"OK", "Open duplicate alert -> button")]; 909 [alert addButtonWithTitle: NSLocalizedString(@"Don't Alert Again", "Open duplicate alert -> button")]; 906 910 [alert setAlertStyle: NSWarningAlertStyle]; 907 911 908 [alert runModal]; 912 if ([alert runModal] == NSAlertSecondButtonReturn) 913 [fDefaults setBool: NO forKey: @"WarningDuplicate"]; 909 914 [alert release]; 910 915 }
Note: See TracChangeset
for help on using the changeset viewer.