Changeset 103 for trunk/Cocoa/Pester/Source/PSAlarm.m
- Timestamp:
- 02/26/03 07:12:36 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/PSAlarm.m
r61 r103 197 197 { 198 198 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")); 200 200 alarmType = PSAlarmSnooze; 201 201 } … … 269 269 - (NSTimeInterval)timeRemaining; 270 270 { 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); 272 272 return -[[NSDate date] timeIntervalSinceDate: alarmDate]; 273 273 } … … 354 354 355 355 [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]]; 357 357 if (alertList != nil) { 358 358 [string appendAttributedString: alertList]; … … 445 445 break; 446 446 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]); 448 448 break; 449 449 } … … 478 478 break; 479 479 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]); 481 481 break; 482 482 }
Note:
See TracChangeset
for help on using the changeset viewer.