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

On Some Android device Default locale and System locale are different.

    XMLWordPrintable

Details

    • Android

    Description

      On Some Android device (for example Samsung S10) Default locale and system locale name prints different if language settings has been chosen which says in note "May not be available in some apps" (attached screenshot)

       

      Steps:

      Go to 'Language settings'

      • Choose a language that has a note "May not be available in some
        apps" (e.g. Russian)
      • Print Following code snippet in main :
        qDebug()<<QLocale::system().name(); // prints "en_US"
        qDebug() << QLocale().name(); //"en_US"
        qDebug() << locale.uiLanguages().at(0); //"el-CY"
        

         

      Attachments

        1. languages (1).png
          languages (1).png
          133 kB
        2. screenshot-1.png
          screenshot-1.png
          140 kB
        3. screenshot-2.png
          screenshot-2.png
          142 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Eddy Edward Welbourne
            irfan.omair@digia.com Irfan Omair
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes