diff --git a/src/KalLogic.m b/src/KalLogic.m index c15e161..89c273d 100644 --- a/src/KalLogic.m +++ b/src/KalLogic.m @@ -34,6 +34,10 @@ - (id)initForDate:(NSDate *)date { if ((self = [super init])) { monthAndYearFormatter = [[NSDateFormatter alloc] init]; + NSString *localeString = [[NSLocale preferredLanguages] objectAtIndex:0]; + NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:localeString]; + [monthAndYearFormatter setLocale:locale]; + [locale release]; [monthAndYearFormatter setDateFormat:@"LLLL yyyy"]; [self moveToMonthForDate:date]; }