Simplify [UIxContactEditor addressBookDisplayName]

We were trying to translate the default address book name to the user's
language, but the method [SOGoContactFolders defaultFolderName] is
already returning a translated string, making the whole logic useless.
This commit is contained in:
Francis Lachapelle
2014-04-02 10:15:59 -04:00
parent 99d9615c92
commit ee09b80fc3

View File

@@ -219,17 +219,7 @@ static Class SOGoContactGCSEntryK = Nil;
- (NSString *) addressBookDisplayName
{
NSString *fDisplayName;
SOGoObject <SOGoContactFolder> *folder;
SOGoContactFolders *parentFolder;
fDisplayName = [addressBookItem displayName];
folder = [[self clientObject] container];
parentFolder = [folder container];
if ([fDisplayName isEqualToString: [parentFolder defaultFolderName]])
fDisplayName = [self labelForKey: fDisplayName];
return fDisplayName;
return [addressBookItem displayName];
}
- (BOOL) supportCategories