See ChangeLog.

Monotone-Parent: 9cb63fedb848baac983ef94694d11b7e242eef67
Monotone-Revision: 00387fb21eaf4cb1b4d1ece522a38e6417a162c1

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-06-23T18:13:48
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2010-06-23 18:13:48 +00:00
parent 48658b2741
commit 96a59133c4
3 changed files with 24 additions and 3 deletions
+8 -2
View File
@@ -24,12 +24,16 @@
#import <Foundation/NSCalendarDate.h>
#import <Foundation/NSString.h>
#import <NGObjWeb/WOApplication.h>
#import <NGExtensions/NSCalendarDate+misc.h>
#import <SoObjects/SOGo/NSCalendarDate+SOGo.h>
#import <SOGoUI/SOGoAptFormatter.h>
#import <SoObjects/SOGo/SOGoDateFormatter.h>
#import <SoObjects/SOGo/SOGoUser.h>
#import <SoObjects/SOGo/SOGoUserDefaults.h>
#import "../../Main/SOGo.h"
#import "UIxCalMonthView.h"
@@ -38,6 +42,7 @@
- (id) init
{
NSDictionary *locale;
SOGoUserDefaults *ud;
if ((self = [super init]))
{
@@ -46,7 +51,8 @@
// [monthAptFormatter setShortMonthTitleOnly];
// dateFormatter = [[SOGoDateFormatter alloc]
// initWithLocale: [self locale]];
locale = [context valueForKey: @"locale"];
ud = [[context activeUser] userDefaults];
locale = [[WOApplication application] localeForLanguageNamed: [ud language]];
dayNames = [locale objectForKey: NSWeekDayNameArray];
[dayNames retain];
monthNames = [locale objectForKey: NSMonthNameArray];