mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 12:57:14 +00:00
New events list view
This commit is contained in:
1 parent
614a137128
commit
77f9f60276
9 files changed
+419
-189
No files matched your search
@@ -19,6 +19,7 @@
|
||||
*/
|
||||
|
||||
#import <Foundation/NSKeyValueCoding.h>
|
||||
#import <Foundation/NSUserDefaults.h> /* for locale strings */
|
||||
|
||||
#import <NGObjWeb/SoObjects.h>
|
||||
#import <NGObjWeb/WOContext+SoObjects.h>
|
||||
@@ -30,7 +31,9 @@
|
||||
#import <SoObjects/SOGo/NSString+Utilities.h>
|
||||
#import <SoObjects/SOGo/SOGoSession.h>
|
||||
#import <SoObjects/SOGo/SOGoSystemDefaults.h>
|
||||
#import <SoObjects/SOGo/SOGoUser.h>
|
||||
#import <SoObjects/SOGo/SOGoWebAuthenticator.h>
|
||||
#import <SoObjects/SOGo/WOResourceManager+SOGo.h>
|
||||
|
||||
#import <NGExtensions/NSObject+Logs.h>
|
||||
|
||||
@@ -50,6 +53,31 @@ static SoProduct *commonProduct = nil;
|
||||
}
|
||||
}
|
||||
|
||||
- (id) initWithContext: (WOContext *)_context;
|
||||
{
|
||||
NSString *language;
|
||||
SOGoUserDefaults *userDefaults;
|
||||
WOResourceManager *resMgr;
|
||||
|
||||
if ((self = [super initWithContext: _context]))
|
||||
{
|
||||
userDefaults = [[_context activeUser] userDefaults];
|
||||
if (!userDefaults)
|
||||
userDefaults = [SOGoSystemDefaults sharedSystemDefaults];
|
||||
language = [userDefaults language];
|
||||
resMgr = [[WOApplication application] resourceManager];
|
||||
ASSIGN (locale, [resMgr localeForLanguageNamed: language]);
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
[locale release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (WOResponse *) responseWithStatus: (unsigned int) status
|
||||
{
|
||||
WOResponse *response;
|
||||
|
||||
Reference in new issue
Block a user