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/PSAlarm.m

    r61 r103  
    197197{
    198198    snoozeInterval = anInterval;
    199     NSAssert(alarmType == PSAlarmExpired, @"CanÕt snooze an alarm that hasnÕt expired");
     199    NSAssert(alarmType == PSAlarmExpired, NSLocalizedString(@"Can't snooze an alarm that hasn't expired", "Assertion for PSAlarm snooze setting"));
    200200    alarmType = PSAlarmSnooze;
    201201}
     
    269269- (NSTimeInterval)timeRemaining;
    270270{
    271     NSAssert1(alarmType == PSAlarmSet, @"CanÕt get time remaining on alarm with no timer set: %@", self);
     271    NSAssert1(alarmType == PSAlarmSet, NSLocalizedString(@"Can't get time remaining on alarm with no timer set: %@", "Assertion for PSAlarm time remaining, internal error; %@ replaced by alarm description"), self);
    272272    return -[[NSDate date] timeIntervalSinceDate: alarmDate];
    273273}
     
    354354
    355355    [string appendAttributedString:
    356         [[NSString stringWithFormat: @"At alarm time for Ò%@Ó:\n", [self message]] small]];
     356        [[NSString stringWithFormat: NSLocalizedString(@"At alarm time for %@:\n", "Alert list title in pretty description, %@ replaced with message"), [self message]] small]];
    357357    if (alertList != nil) {
    358358        [string appendAttributedString: alertList];
     
    445445            break;
    446446        default:
    447             NSAssert1(NO, @"CanÕt save alarm type %@", [self _alarmTypeString]);
     447            NSAssert1(NO, NSLocalizedString(@"Can't save alarm type %@", "Assertion for invalid PSAlarm type on string; %@ replaced with alarm type string"), [self _alarmTypeString]);
    448448            break;
    449449    }
     
    478478                break;
    479479            default:
    480                 NSAssert1(NO, @"CanÕt load alarm type %@", [self _alarmTypeString]);
     480                NSAssert1(NO, NSLocalizedString(@"Can't load alarm type %@", "Assertion for invalid PSAlarm type on load; %@ replaced with alarm type string"), [self _alarmTypeString]);
    481481                break;
    482482        }
Note: See TracChangeset for help on using the changeset viewer.