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

QLocale::countryToString() is not suitable for direct use in a ui

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 5.15.2
    • 5.2.0 Beta1
    • Core: Locales (i18n)
    • None

      QLocale::countryToString() returns the English name for a given country. But the string (defined in country_name_list in qtbase/src/corelib/tools/qlocale_data_p.h) is not a normal English name that can be used directly in a user interface, since normal formatting (specifically spaces) is lost.

      For instance the list gives "AntiguaAndBarbuda" instead of "Antigua And Barbuda", "CentralAfricanRepublic" instead of "Central African Republic", etc.

      This bug is related to QTBUG-1587. That bug requests that the name be returned appropriately for the language of the Locale, rather than an English name. Here I'm noting that not even an English name is in fact returned.

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

            thiago Thiago Macieira
            rizzer Drew Parsons
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes