mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-04 21:08:51 +00:00
fix(login): fix localizabled strings when changing language
This commit is contained in:
@@ -219,16 +219,12 @@
|
||||
NSDictionary *moreStrings;
|
||||
NSString *language, *frameworkName;
|
||||
NSMutableDictionary* strings;
|
||||
SOGoUserDefaults *ud;
|
||||
id table;
|
||||
|
||||
// When no framework is specified, we load the strings from UI/Common
|
||||
frameworkName = [NSString stringWithFormat: @"%@.SOGo",
|
||||
(framework ? framework : [self frameworkName])];
|
||||
ud = [[context activeUser] userDefaults];
|
||||
if (!ud)
|
||||
ud = [SOGoSystemDefaults sharedSystemDefaults];
|
||||
language = [ud language];
|
||||
language = [[context resourceLookupLanguages] objectAtIndex: 0];
|
||||
|
||||
table
|
||||
= [[self resourceManager] stringTableWithName: @"Localizable"
|
||||
|
||||
Reference in New Issue
Block a user