mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Merge pull request #49988 from nextcloud/jtr-locale-personal-info
fix(settings): show the correct initial locale in Personal info
This commit is contained in:
commit
17e8948360
1 changed files with 1 additions and 1 deletions
|
|
@ -265,8 +265,8 @@ class PersonalInfo implements ISettings {
|
|||
}
|
||||
|
||||
$uid = $user->getUID();
|
||||
$userLocaleString = $this->config->getUserValue($uid, 'core', 'locale', $this->l10nFactory->findLocale());
|
||||
$userLang = $this->config->getUserValue($uid, 'core', 'lang', $this->l10nFactory->findLanguage());
|
||||
$userLocaleString = $this->config->getUserValue($uid, 'core', 'locale', $this->l10nFactory->findLocale($userLang));
|
||||
$localeCodes = $this->l10nFactory->findAvailableLocales();
|
||||
$userLocale = array_filter($localeCodes, fn ($value) => $userLocaleString === $value['code']);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue