mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 11:55:24 +00:00
Monotone-Parent: 269150da497e736104a81ea8ce9ab74f8c6b6027
Monotone-Revision: c1039e97ecb95a8e1dd4a1ca25d457f206daeac3 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-10-18T17:17:29 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -48,6 +48,12 @@ extern NSString *SOGoWeekStartJanuary1;
|
||||
extern NSString *SOGoWeekStartFirst4DayWeek;
|
||||
extern NSString *SOGoWeekStartFirstFullWeek;
|
||||
|
||||
@interface SoUser (SOGoExtension)
|
||||
|
||||
- (NSString *) language;
|
||||
|
||||
@end
|
||||
|
||||
@interface SOGoUser : SoUser
|
||||
{
|
||||
NSString *currentPassword;
|
||||
|
||||
@@ -57,6 +57,27 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
|
||||
|
||||
@end
|
||||
|
||||
@implementation SoUser (SOGoExtension)
|
||||
|
||||
- (NSString *) language
|
||||
{
|
||||
NSArray *bLanguages;
|
||||
WOContext *context;
|
||||
NSString *language;
|
||||
|
||||
context = [[WOApplication application] context];
|
||||
bLanguages = [[context request] browserLanguages];
|
||||
if ([bLanguages count] > 0)
|
||||
language = [bLanguages objectAtIndex: 0];
|
||||
|
||||
if (![language length])
|
||||
language = defaultLanguage;
|
||||
|
||||
return language;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation SOGoUser
|
||||
|
||||
+ (void) initialize
|
||||
|
||||
Reference in New Issue
Block a user