Merge pull request #18429 from nextcloud/locale-fallback
add a fallback locale for personal settings page
This commit is contained in:
commit
7f2b3eabe1
1 changed files with 7 additions and 0 deletions
|
@ -251,6 +251,13 @@ class PersonalInfo implements ISettings {
|
||||||
return 0 === strpos($localeCode['code'], $userLang);
|
return 0 === strpos($localeCode['code'], $userLang);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!$userLocale) {
|
||||||
|
$userLocale = [
|
||||||
|
'code' => 'en',
|
||||||
|
'name' => 'English'
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'activelocaleLang' => $userLocaleString,
|
'activelocaleLang' => $userLocaleString,
|
||||||
'activelocale' => $userLocale,
|
'activelocale' => $userLocale,
|
||||||
|
|
Loading…
Reference in a new issue