Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QLocale::countryToString typo + dubious format
Forum Updated to NodeBB v4.3 + New Features

QLocale::countryToString typo + dubious format

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 854 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shylock_the_camel
    wrote on last edited by
    #1

    Hello,

    Using QLocale::countryToString, I have noticed that QLocale::countryToString(QLocale::Andorra) returns "andorra" instead of "Andorra".

    Besides, when the country name has several words, like United States, the method returns "UnitedStates" i.e. without white space between upper case letters. Is it the desired behavior? Why if it is so?

    Thanks for helping!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which version of Qt are you using ?

      These data are generated based on http://www.unicode.org/cldr/

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        shylock_the_camel
        wrote on last edited by
        #3

        Hi,

        I am using Qt 5.5 but I have noticed this problem (absence of white space) ever since I started using Qt (something like version 4.7).
        I checked out your link but I am not able to tell which chart or file states the official name or at least English spelling of countries. However, in every chart displayed, the name of a country is spelled in a human readable format i.e. with white spaces so my guess is that Qt is not displaying the country names right.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          See QTBUG-34287 you have the reason there of why it's like that

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved