Respect languages preferences on login page

Fixes #4169
This commit is contained in:
Francis Lachapelle committed 2017-05-18 22:28:05 -04:00
1 parent aee42f76f0
commit 41967d3eec
6 files changed
+57 -21

No files matched your search

+10
View File
@@ -72,6 +72,11 @@
/* accessors */
- (NSString *) modulePath
{
return @"";
}
//- (NSString *) connectURL
//{
// return [NSString stringWithFormat: @"%@/connect", [self applicationPath]];
@@ -525,6 +530,11 @@
return item;
}
- (NSString *) language
{
return [[context resourceLookupLanguages] objectAtIndex: 0];
}
- (NSArray *) languages
{
return [[SOGoSystemDefaults sharedSystemDefaults] supportedLanguages];