mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 21:07:14 +00:00
Monotone-Parent: 3bc573b09449f0efea891e5e11a232520f51205c
Monotone-Revision: 3188fd0271db42fb785221461e9a3655109f23a8 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-20T19:15:26 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
8a25d89438
commit
4522bd5626
5 files changed
+37
-6
No files matched your search
@@ -224,6 +224,14 @@
|
||||
|
||||
/* folder type */
|
||||
|
||||
- (BOOL) isEqual: (id) otherFolder
|
||||
{
|
||||
return ([otherFolder class] == [self class]
|
||||
&& [container isEqual: [otherFolder container]]
|
||||
&& [nameInContainer
|
||||
isEqualToString: [otherFolder nameInContainer]]);
|
||||
}
|
||||
|
||||
- (NSString *) outlookFolderClass
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
#import "NSString+Utilities.h"
|
||||
|
||||
#import "SOGoContentObject.h"
|
||||
#import "SOGoParentFolder.h"
|
||||
#import "SOGoPermissions.h"
|
||||
#import "SOGoUser.h"
|
||||
|
||||
@@ -109,11 +110,16 @@ static NSString *defaultUserID = @"<default>";
|
||||
|
||||
- (void) _setDisplayNameFromRow: (NSDictionary *) row
|
||||
{
|
||||
NSString *currentLogin, *ownerLogin;
|
||||
NSString *currentLogin, *ownerLogin, *primaryDN;
|
||||
NSDictionary *ownerIdentity;
|
||||
|
||||
displayName
|
||||
= [NSMutableString stringWithString: [row objectForKey: @"c_foldername"]];
|
||||
primaryDN = [row objectForKey: @"c_foldername"];
|
||||
displayName = [NSMutableString string];
|
||||
if ([primaryDN isEqualToString: [container defaultFolderName]])
|
||||
[displayName appendString: [self labelForKey: primaryDN]];
|
||||
else
|
||||
[displayName appendString: primaryDN];
|
||||
|
||||
currentLogin = [[context activeUser] login];
|
||||
ownerLogin = [self ownerInContext: context];
|
||||
if (![currentLogin isEqualToString: ownerLogin])
|
||||
|
||||
@@ -995,11 +995,13 @@ static BOOL kontactGroupDAV = YES;
|
||||
|
||||
userLanguage = [[context activeUser] language];
|
||||
paths = [bundle pathsForResourcesOfType: @"strings"
|
||||
inDirectory: [NSString stringWithFormat: @"%@.lproj", userLanguage]
|
||||
inDirectory: [NSString stringWithFormat: @"%@.lproj",
|
||||
userLanguage]
|
||||
forLocalization: userLanguage];
|
||||
if ([paths count] > 0)
|
||||
{
|
||||
strings = [NSDictionary dictionaryFromStringsFile: [paths objectAtIndex: 0]];
|
||||
strings = [NSDictionary
|
||||
dictionaryFromStringsFile: [paths objectAtIndex: 0]];
|
||||
label = [strings objectForKey: key];
|
||||
if (!label)
|
||||
label = key;
|
||||
|
||||
Reference in new issue
Block a user