Changeset 103 for trunk/Cocoa/Pester/Source/NJRQTMediaPopUpButton.m
- Timestamp:
- 02/26/03 07:12:36 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/NJRQTMediaPopUpButton.m
r60 r103 43 43 - (NSString *)_defaultKey; 44 44 { 45 NSAssert([self tag] != 0, @"CanÕt track recently selected media for popup with tag 0: please set a tag");45 NSAssert([self tag] != 0, NSLocalizedString(@"Can't track recently selected media for popup with tag 0: please set a tag", "Assertion for QuickTime media popup button if tag is 0")); 46 46 return [NSString stringWithFormat: @"NJRQTMediaPopUpButtonMaxRecentItems tag %d", [self tag]]; 47 47 } … … 123 123 [menu addItem: [NSMenuItem separatorItem]]; 124 124 if (soundCount == 0) { 125 item = [menu addItemWithTitle: @"CanÕt locate alert sounds"action: nil keyEquivalent: @""];125 item = [menu addItemWithTitle: NSLocalizedString(@"Can't locate alert sounds", "QuickTime media popup menu item surrogate for alert sound list if no sounds are found") action: nil keyEquivalent: @""]; 126 126 [item setEnabled: NO]; 127 127 } else { … … 138 138 } 139 139 [menu addItem: [NSMenuItem separatorItem]]; 140 item = [menu addItemWithTitle: @"OtherÉ"action: @selector(select:) keyEquivalent: @""];140 item = [menu addItemWithTitle: NSLocalizedString(@"Other...", "Media popup item to select another sound/movie/image") action: @selector(select:) keyEquivalent: @""]; 141 141 [item setTarget: self]; 142 142 otherItem = [item retain]; … … 300 300 [preview setMovie: nil]; 301 301 if (movie == nil) { 302 NSBeginAlertSheet(@"Format not recognized", nil, nil, nil, [self window], nil, nil, nil, nil, @"The item you selected isnÕt a sound or movie recognized by QuickTime. Please select a different item.");302 NSBeginAlertSheet(@"Format not recognized", nil, nil, nil, [self window], nil, nil, nil, nil, NSLocalizedString(@"The item you selected isn't a sound or movie recognized by QuickTime. Please select a different item.", "Message displayed in alert sheet when media document is not recognized by QuickTime")); 303 303 [self _invalidateSelection]; 304 304 return NO; 305 305 } 306 306 if (![movie hasAudio] && ![movie hasVideo]) { 307 NSBeginAlertSheet(@"No video or audio", nil, nil, nil, [self window], nil, nil, nil, nil, @"Ò%@Ó contains neither audio nor video content playable by QuickTime. Please select a different item.", [[NSFileManager defaultManager] displayNameAtPath: [selectedAlias fullPath]]);307 NSBeginAlertSheet(@"No video or audio", nil, nil, nil, [self window], nil, nil, nil, nil, NSLocalizedString(@"'%@' contains neither audio nor video content playable by QuickTime. Please select a different item.", "Message displayed in alert sheet when media document is readable, but has neither audio nor video tracks"), [[NSFileManager defaultManager] displayNameAtPath: [selectedAlias fullPath]]); 308 308 [self _invalidateSelection]; 309 309 [movie release]; … … 317 317 OSErr err = CallMeWhen(cbStop, cbStopUPP, (long)preview, triggerAtStop, 0, 0); 318 318 if (err != noErr) { 319 NSLog(@"Can Õt register QuickTime stop timebase callback for preview: %ld", err);319 NSLog(@"Can't register QuickTime stop timebase callback for preview: %ld", err); 320 320 DisposeCallBack(cbStop); 321 321 } … … 485 485 [s appendFormat: @" '%4s'", &osType]; 486 486 } else { 487 [s appendFormat: @" \"%@\"", type];487 [s appendFormat: @" '%@'", type]; 488 488 } 489 489 }
Note:
See TracChangeset
for help on using the changeset viewer.