fix(login): fix localizabled strings when changing language
parent
c38524ab07
commit
a3277eb65a
|
@ -219,16 +219,12 @@
|
||||||
NSDictionary *moreStrings;
|
NSDictionary *moreStrings;
|
||||||
NSString *language, *frameworkName;
|
NSString *language, *frameworkName;
|
||||||
NSMutableDictionary* strings;
|
NSMutableDictionary* strings;
|
||||||
SOGoUserDefaults *ud;
|
|
||||||
id table;
|
id table;
|
||||||
|
|
||||||
// When no framework is specified, we load the strings from UI/Common
|
// When no framework is specified, we load the strings from UI/Common
|
||||||
frameworkName = [NSString stringWithFormat: @"%@.SOGo",
|
frameworkName = [NSString stringWithFormat: @"%@.SOGo",
|
||||||
(framework ? framework : [self frameworkName])];
|
(framework ? framework : [self frameworkName])];
|
||||||
ud = [[context activeUser] userDefaults];
|
language = [[context resourceLookupLanguages] objectAtIndex: 0];
|
||||||
if (!ud)
|
|
||||||
ud = [SOGoSystemDefaults sharedSystemDefaults];
|
|
||||||
language = [ud language];
|
|
||||||
|
|
||||||
table
|
table
|
||||||
= [[self resourceManager] stringTableWithName: @"Localizable"
|
= [[self resourceManager] stringTableWithName: @"Localizable"
|
||||||
|
|
Loading…
Reference in New Issue