Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.7.1
-
None
-
44b6757fe50b6bf581864d3da519a3ff60818fa8
Description
Issues:
- Instantiating a QLocale with 'eo' gives back the default "C" locale (nativeLanguageName returns empty string).
- Instantiating a QLocale with QLocale::Esperanto gives back the default 'en' locale (nativeLanguageName returns 'American English').
#include <QCoreApplication> #include <QLocale> #include <QTextStream> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); auto locale = QLocale("eo"); QTextStream(stdout) << locale.language() << endl // "1" << locale.nativeLanguageName() << endl; // "" locale = QLocale(QLocale::Esperanto, QLocale::AnyCountry); QTextStream(stdout) << locale.language() << endl // "31" << locale.nativeLanguageName() << endl; // "American English" QTextStream(stdout) << QLocale::Esperanto << endl // "32" << QLocale::languageToString(QLocale::Esperanto) << endl; // "Esperanto" return a.exec(); }
Attachments
Issue Links
- relates to
-
QTBUG-71144 Update CLDR to version 34
- Closed