mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-01 03:22:43 +00:00
fix(preferences): Fix language list sorting on preferences page
This commit is contained in:
@@ -467,6 +467,16 @@ _injectConfigurationFromFile (NSMutableDictionary *defaultsDict,
|
||||
return [self stringForKey: @"SOGoHelpURL"];
|
||||
}
|
||||
|
||||
NSComparisonResult languageSort(id el1, id el2, void *context)
|
||||
{
|
||||
NSString *t1, *t2;
|
||||
|
||||
t1 = [context labelForKey: el1];
|
||||
t2 = [context labelForKey: el2];
|
||||
|
||||
return [t1 compare: t2 options: NSCaseInsensitiveSearch];
|
||||
}
|
||||
|
||||
- (NSArray *) supportedLanguages
|
||||
{
|
||||
static NSArray *supportedLanguages = nil;
|
||||
|
||||
Reference in New Issue
Block a user