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

QLocale::system().uiLanguages().at(0) returns wrong values for Hebrew

XMLWordPrintable

    • Android
    • 8c89a8b1ef3e4ce549a5d0bbc4168c199e44f8cf

      The user wants to detect does her application used on Android device (Nexus 6.0/7.0) with Hebrew installed as a device's display language or not. This can be achieved with this call QLocale::system().uiLanguages().at(0). For majority of different locales the user is getting a right information: country code and language code. however for Hebrew the user is getting this information:

      m_country_id = 0 (QLocale::AnyCountry)
      m_language_id = 1 (The "C" locale is identical in behavior to English/UnitedStates.)
      m_currency_iso_code = "\0"
      

      The developer can see this problem if the demo attached is used and the Android device's display language is set to Hebrew.

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

            andysh Andy Shaw
            dmnikola Dmitry Nikolaev
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes