Skip to content

Commit 3e66411

Browse files
Merge pull request #50071 from nextcloud/backport/49988/stable29
[stable29] fix(settings): show the correct initial locale in Personal info
2 parents 83367c5 + cb4c2ad commit 3e66411

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/settings/lib/Settings/Personal/PersonalInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ private function getLocaleMap(IUser $user): array {
324324
}
325325

326326
$uid = $user->getUID();
327-
$userLocaleString = $this->config->getUserValue($uid, 'core', 'locale', $this->l10nFactory->findLocale());
328327
$userLang = $this->config->getUserValue($uid, 'core', 'lang', $this->l10nFactory->findLanguage());
328+
$userLocaleString = $this->config->getUserValue($uid, 'core', 'locale', $this->l10nFactory->findLocale($userLang));
329329
$localeCodes = $this->l10nFactory->findAvailableLocales();
330330
$userLocale = array_filter($localeCodes, fn ($value) => $userLocaleString === $value['code']);
331331

0 commit comments

Comments
 (0)