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
View File
@@ -1,3 +1,11 @@
2010-06-23 Francis Lachapelle <flachapelle@inverse.ca>
* SoObjects/SOGo/SOGoUserDefaults.m (-language): verify that the
language is part of the supported languages of the system configuration.
* UI/Scheduler/UIxCalMonthView.m (-init): retrieve the locale
associated to the user's language.
2010-06-23 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoGCSFolder.m (-_lastModified): new method that
+8 -1
View File
@@ -346,11 +346,18 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
- (NSString *) language
{
NSString *language;
NSArray *supportedLanguages;
/* see SOGoDomainDefaults for the meaning of this */
language = [source objectForKey: @"SOGoLanguage"];
if (!(language && [language isKindOfClass: [NSString class]]))
language = [(SOGoDomainDefaults *) parentSource language];
/* make sure the language is part of the supported languages */
supportedLanguages = [[SOGoSystemDefaults sharedSystemDefaults]
supportedLanguages];
if (![supportedLanguages containsObject: language])
language = [parentSource stringForKey: @"SOGoLanguage"];
return language;
}
+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];