Skip to content

Commit

Permalink
fix(login): fix localizabled strings when changing language
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Nov 30, 2020
1 parent c38524a commit a3277eb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions UI/Common/UIxPageFrame.m
Original file line number Diff line number Diff line change
Expand Up @@ -219,16 +219,12 @@ - (NSDictionary *) _stringsForFramework: (NSString *) framework
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"
Expand Down

0 comments on commit a3277eb

Please sign in to comment.