Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-55672

Locale reports incorrect system language on WinRT

    XMLWordPrintable

    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)
    • Labels:
    • Environment:
      WinRT (both 8.1 and 10)
    • Platform/s:
      WinRT
    • 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

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            mkalinow Maurice Kalinowski
            Reporter:
            jens2 none
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes