mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 22:38:51 +00:00
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:
@@ -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:]):
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -93,6 +93,7 @@ extern NSString *SOGoWeekStartFirstFullWeek;
|
||||
- (NSUserDefaults *) userDefaults;
|
||||
- (NSUserDefaults *) userSettings;
|
||||
|
||||
- (void) invalidateLanguage;
|
||||
- (NSString *) language;
|
||||
- (NSTimeZone *) timeZone;
|
||||
- (NSTimeZone *) serverTimeZone;
|
||||
|
||||
Reference in New Issue
Block a user