Ignore:
Timestamp:
02/26/03 07:12:36 (21 years ago)
Author:
Nicholas Riley
Message:

Localization, bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/Source/NJRQTMediaPopUpButton.m

    r60 r103  
    4343- (NSString *)_defaultKey;
    4444{
    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"));
    4646    return [NSString stringWithFormat: @"NJRQTMediaPopUpButtonMaxRecentItems tag %d", [self tag]];
    4747}
     
    123123    [menu addItem: [NSMenuItem separatorItem]];
    124124    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: @""];
    126126        [item setEnabled: NO];
    127127    } else {
     
    138138    }
    139139    [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: @""];
    141141    [item setTarget: self];
    142142    otherItem = [item retain];
     
    300300            [preview setMovie: nil];
    301301            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"));
    303303                [self _invalidateSelection];
    304304                return NO;
    305305            }
    306306            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]]);
    308308                [self _invalidateSelection];
    309309                [movie release];
     
    317317            OSErr err = CallMeWhen(cbStop, cbStopUPP, (long)preview, triggerAtStop, 0, 0);
    318318            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);
    320320                DisposeCallBack(cbStop);
    321321            }
     
    485485            [s appendFormat: @" '%4s'", &osType];
    486486        } else {
    487             [s appendFormat: @" \"%@\"", type];
     487            [s appendFormat: @" '%@'", type];
    488488        }
    489489    }
Note: See TracChangeset for help on using the changeset viewer.