Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.12.1
-
None
-
-
qtbase/34d3f2e21921a7eef8f6241a178598f9eaf0a8a9 (5.15) qtbase/55e16b25f52fdd1b945d3f94d79ce85d88cb69ec (dev) qtbase/28bc3ca8114033a5542e7877105de4f7ec62bf83 (5.15) qtbase/e69b81101c6e09d1c1b81d50ea868a8625c9f248 (dev)
Description
When creating a Locale object and querying the function nativeCountryName it seems to use the language of the locale to choose the country name result.
for example
QLocale tempLocale(QLocale::Dutch, QLocale::UnitedKingdom);
QString countryName = tempLocale.nativeCountryName();
This will always result in "Nederland" regardless of the country I use, but this relates only to the language not the country.
To make matters worse the static function:
QString QLocale::countryToString(QLocale::Country country)
for me always returns only the english name regardless of default locale setting and system locale.
Attachments
Issue Links
- is duplicated by
-
QTBUG-75845 QLocale reads country from language.
- Closed
- is required for
-
QTBUG-84669 Upgrade to CLDR v37
- Closed
- relates to
-
QTBUG-79902 QLocale: make fuller and more faithful use of the CLDR data
- Open
-
QTBUG-47892 QLocale("es").nativeLanguageName() is "español de España"
- Reported
-
QTBUG-75036 Qt Linguist UI wrongly says "Translate to English"
- Open
For Gerrit Dashboard: QTBUG-74287 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
317618,5 | Fix locale look-up when language is unspecified | dev | qt/qtbase | Status: MERGED | +2 | 0 |
318360,3 | Fix locale look-up when language is unspecified | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |
318361,3 | Fix locale look-up when language is unspecified | 5.15 | qt/qtbase | Status: MERGED | +2 | 0 |