Skip to content

Commit 17e8948

Browse files
Merge pull request #49988 from nextcloud/jtr-locale-personal-info
fix(settings): show the correct initial locale in Personal info
2 parents bbba8b4 + 5e27d14 commit 17e8948

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
@@ -265,8 +265,8 @@ private function getLocaleMap(IUser $user): array {
265265
}
266266

267267
$uid = $user->getUID();
268-
$userLocaleString = $this->config->getUserValue($uid, 'core', 'locale', $this->l10nFactory->findLocale());
269268
$userLang = $this->config->getUserValue($uid, 'core', 'lang', $this->l10nFactory->findLanguage());
269+
$userLocaleString = $this->config->getUserValue($uid, 'core', 'locale', $this->l10nFactory->findLocale($userLang));
270270
$localeCodes = $this->l10nFactory->findAvailableLocales();
271271
$userLocale = array_filter($localeCodes, fn ($value) => $userLocaleString === $value['code']);
272272

0 commit comments

Comments
 (0)