Merge pull request #2995 from thunder2/fix-language

Fixed set of default language in LanguageSupport::localize. Use value…
This commit is contained in:
Thunder 2025-07-22 20:27:10 +02:00 committed by GitHub
commit 16a30dcbe3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -261,6 +261,6 @@ bool LanguageSupport::localize(const QString &languageCode)
{
if (!isValidLanguageCode(languageCode))
return false;
QLocale::setDefault(locales().key(languageCode));
QLocale::setDefault(locales()[languageCode]);
return true;
}