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

iOS/macOS: system localization always returns english language

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS, macOS
    • 4709c938db (qt/tqtc-qtbase/dev) c3fd2da7fb (qt/qtbase/6.4) c3fd2da7fb (qt/tqtc-qtbase/6.4), 47c5cbeca (tqtc/lts-5.15), 8ad0a8fe2 (tqtc/lts-5.15)

    Description

      After updating to iOS 11, system localization always returns the English language :

      qDebug() << "QLocal language: " << QLocale::system().language();
      qDebug() << "QLocal name: " << QLocale::system().name();
      

      outputs :

      QLocal language: QLocale::Language(English)
      QLocal name: "en_US"
      

       
      Device localization & region of the device seems to be ignored. E.g. when I set the iOS device language to "French" and region to "France", QLocale returns the above outputs.

       

      Attachments

        1. image-2022-10-19-16-36-02-822.png
          image-2022-10-19-16-36-02-822.png
          430 kB
        2. screenshot-1.png
          screenshot-1.png
          766 kB
        3. screenshot-2.png
          screenshot-2.png
          714 kB
        4. screenshot-3.png
          screenshot-3.png
          791 kB
        5. screenshot-4.png
          screenshot-4.png
          795 kB
        6. screenshot-5.png
          screenshot-5.png
          736 kB
        7. screenshot-6.png
          screenshot-6.png
          264 kB

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              sierra Sylvain Devaux
              Votes:
              7 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: