Browse Source
Merge pull request #18429 from nextcloud/locale-fallback
add a fallback locale for personal settings page
pull/18446/head
Roeland Jago Douma
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
apps/settings/lib/Settings/Personal/PersonalInfo.php
|
|
|
@ -251,6 +251,13 @@ class PersonalInfo implements ISettings { |
|
|
|
return 0 === strpos($localeCode['code'], $userLang); |
|
|
|
}); |
|
|
|
|
|
|
|
if (!$userLocale) { |
|
|
|
$userLocale = [ |
|
|
|
'code' => 'en', |
|
|
|
'name' => 'English' |
|
|
|
]; |
|
|
|
} |
|
|
|
|
|
|
|
return [ |
|
|
|
'activelocaleLang' => $userLocaleString, |
|
|
|
'activelocale' => $userLocale, |
|
|
|
|