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

Locale reports incorrect system language on WinRT

    XMLWordPrintable

Details

    • WinRT
    • 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

        For Gerrit Dashboard: QTBUG-55672
        # Subject Branch Project Status CR V

        Activity

          People

            mkalinow Maurice Kalinowski
            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