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

QLocale::nativeLanguageName can return empty strings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.5.1
    • Core: Locales (i18n)
    • None
    • Tested on a Windows 10 system.

    Description

      On Windows for some of the more exotic locales like "nds" (Low German) nativeLanguageName returns an Empty string.

      This is unexpected and is not mentioned in the the documentation.
      https://doc.qt.io/qt-5/qlocale.html#nativeLanguageName

      Ideally there would be some kind of fallback for the names where getLocaleInfo(LOCALE_SNATIVELANGUAGENAME) returns an empty string. At least it should be mentioned in the Documentation.

      (Affects Version 5.5.1 chosen because that's the one I've tested but probably true for newer versions, too)

      See https://git.reviewboard.kde.org/r/127136 for an example why this can be problematic.

      Attachments

        Issue Links

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

          Activity

            People

              Eddy Edward Welbourne
              aheinecke A. Heinecke
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes