Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3: Somewhat important
-
Resolution: Done
-
Affects Version/s: 5.7.0
-
Fix Version/s: 5.8.0 Beta
-
Component/s: Core: Locales (i18n)
-
Environment:WinRT (both 8.1 and 10)
-
Platform/s:
-
Commits:13d20e47870deac5ecd0f06d8b4a78b82f655654
Description
It seems QLocale::uiLanguages(); returns the incorrect UI language when there is a mismatch between the regional setting and the system language on WinRT.
I can easily reproduce this by setting my phone language to Finnish or Norwegian, while the Region setting is english and different from the language itself.
Here is a typical printout:
Locale Name: "en_US"
UI Languages: ("en-JM", "en-US")
GlobalizationPreferences: "nb"
Note that the correct system language is obtained from checking this function directly:
Windows::System::UserProfile::GlobalizationPreferences::Languages