diff options
author | Josh <josh.t.richards@gmail.com> | 2024-12-29 12:33:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-29 12:33:29 -0500 |
commit | 5e27d1415a68735ad1acefb6c6dc4251dccaada2 (patch) | |
tree | 457878c57ea966b415f3b22eceaf95f0fb58e25d | |
parent | d8d708e0a8b0bf12590406a4736e46e5d3373d24 (diff) | |
download | nextcloud-server-jtr-locale-personal-info.tar.gz nextcloud-server-jtr-locale-personal-info.zip |
fix(settings): show the correct initial locale in Personal infojtr-locale-personal-info
Signed-off-by: Josh <josh.t.richards@gmail.com>
-rw-r--r-- | apps/settings/lib/Settings/Personal/PersonalInfo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/Settings/Personal/PersonalInfo.php b/apps/settings/lib/Settings/Personal/PersonalInfo.php index 6a1f7e97e4a..bf2ec31feb9 100644 --- a/apps/settings/lib/Settings/Personal/PersonalInfo.php +++ b/apps/settings/lib/Settings/Personal/PersonalInfo.php @@ -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']); |