See ChangeLog

Monotone-Parent: e862c091a9e60e7f16da927f0c0c174a7c80dd6f
Monotone-Revision: 2383d3cfedbdc621439fd847ceb4bddeed43c93e

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-03-24T19:50:33
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Francis Lachapelle 2009-03-24 19:50:33 +00:00
parent 0475cc892a
commit 91fb95c461
3 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,12 @@
2009-03-24 Francis Lachapelle <flachapelle@inverse.ca>
* SoObjects/SOGo/SOGoUser.m ([SOGoUser -invalidateLanguage]):
new method to invalidate the language ivar.
* UI/MainUI/SOGoRootPage.m ([SOGoRootPage -connectAction]): must
invalidate user's language ivar when it changes.
* SoObjects/Appointments/SOGoCalendarComponent.m
([SOGoCalendarComponent
-sendEMailUsingTemplateNamed:forObject:previousObject:toAttendees:]):

View File

@ -548,6 +548,11 @@ _timeValue (NSString *key)
return (NSUserDefaults *) settings;
}
- (void) invalidateLanguage
{
language = nil;
}
- (NSString *) language
{
if (![language length])

View File

@ -96,6 +96,7 @@ static NSArray *supportedLanguages = nil;
user = [SOGoUser userWithLogin: userName roles: nil];
[[user userDefaults] setObject: language forKey: @"Language"];
[[user userDefaults] synchronize];
[user invalidateLanguage];
}
}
else