fix(login): fix localizabled strings when changing language

pull/291/head
Francis Lachapelle 2020-11-30 16:59:33 -05:00
parent c38524ab07
commit a3277eb65a
1 changed files with 1 additions and 5 deletions

View File

@ -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"