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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes