See ChangeLog

Monotone-Parent: 2383d3cfedbdc621439fd847ceb4bddeed43c93e
Monotone-Revision: 5d72cbe984ee92d95ab972816ac529dab70a9143

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-03-24T20:36:49
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2009-03-24 20:36:49 +00:00
parent 91fb95c461
commit 1508a89400
3 changed files with 13 additions and 0 deletions

View File

@@ -15,6 +15,10 @@
* UI/MainUI/SOGoRootPage.m ([SOGoRootPage -connectAction]): must
invalidate user's language ivar when it changes.
* SoObjects/SOGo/SOGoCache.m ([SOGoCache
-_userDefaultsHaveChanged:]): must invalidate the user's language
ivar when the defaults change.
* SoObjects/Appointments/SOGoCalendarComponent.m
([SOGoCalendarComponent
-sendEMailUsingTemplateNamed:forObject:previousObject:toAttendees:]):

View File

@@ -416,10 +416,18 @@ static NSLock *lock;
//
- (void) _userDefaultsHaveChanged: (NSNotification *) theNotification
{
SOGoUser *user;
SOGoUserDefaults *defaults;
NSString *uid;
uid = [[theNotification userInfo] objectForKey: @"uid"];
// When the user defaults changed, we must invalidate the
// ivar language for the user object.
user = [self userNamed: uid];
if (user)
[user invalidateLanguage];
//NSLog(@"Updating user defaults for UID: %@", uid);
defaults = (SOGoUserDefaults *)[self userDefaultsForLogin: uid];
if (defaults)

View File

@@ -93,6 +93,7 @@ extern NSString *SOGoWeekStartFirstFullWeek;
- (NSUserDefaults *) userDefaults;
- (NSUserDefaults *) userSettings;
- (void) invalidateLanguage;
- (NSString *) language;
- (NSTimeZone *) timeZone;
- (NSTimeZone *) serverTimeZone;