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

QLocale::OldHungarianScript has no matching locale

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P4: Low
    • None
    • 5.8.0, 5.9.0
    • None
    • The bug likely affects all platforms, but in case you're interested, I'm using Xubuntu 16.04, where my default locale is Hungarian (hu_HU). I've tested the 5.9.0 and 5.8.0 releases of Qt.

    Description

      Old Hungarian (also known as Rovás or Hungarian Runic, ISO 15924: Hung) is a writing system actively used by some Hungarian communities (wikipedia). Therefore I would expect it to be usable with QLocale objects, or be able to create a translation using this alphabet.

      Unfortunately, QLocale supports neither at the moment. If I try to use OldHungarian as the script parameter of QLocale's contructor, it defaults for the current locale. The same happens with using the QString-based ctor (using eg. "hu_Hung_HU"), and as such I can't use QTranslator's relevant function either. QLocale::matchingLocales also returns an empty list if I try to use OldHungarian as the script parameter, and only returns the Latin variant if I query for Hungarian/Hungary.

      A small test program is attached for testing matchingLocales. The expected output would be:

      hu_...._..: (QLocale(Hungarian, Latin, Hungary), QLocale(Hungarian, OldHungarian, Hungary))
      .._Hung_..: (QLocale(Hungarian, OldHungarian, Hungary))
      .._...._HU: (QLocale(Hungarian, Latin, Hungary), QLocale(Hungarian, OldHungarian, Hungary))
      
      hu_Hung_..: (QLocale(Hungarian, OldHungarian, Hungary))
      hu_...._HU: (QLocale(Hungarian, Latin, Hungary), QLocale(Hungarian, OldHungarian, Hungary))
      .._Hung_HU: (QLocale(Hungarian, OldHungarian, Hungary))
      
      hu_Hung_HU: (QLocale(Hungarian, OldHungarian, Hungary))
      

      The current output is:

      hu_...._..:  (QLocale(Hungarian, Latin, Hungary))
      .._Hung_..:  ()
      .._...._HU:  (QLocale(Hungarian, Latin, Hungary))
      
      hu_Hung_..:  ()
      hu_...._HU:  (QLocale(Hungarian, Latin, Hungary))
      .._Hung_HU:  ()
      
      hu_Hung_HU:  ()
      

      Attachments

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

        Activity

          People

            Eddy Edward Welbourne
            mmatyas Mátyás Mustoha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes