Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.8.1
-
None
Description
After recompiling and deploying my app to the latest Qt, the behavior changed;
in Qt 65x the language "en" was picked, in Qt681 the language "nl" is picked.
Locale.uiLangages shows:
`en-NL, en-Latn-NL, nl-NL, nl-Latn-NL, nl, en-US, en-Latn-US, en'
the qrc contains both an 'en' and an 'nl' qm file, the 'nl' is being picked. I confirmed this by printing the translator->language() and filePath().
auto *translator = new QTranslator(&qapp); if (translator->load(QLocale(), "myApp", QLatin1String("_"), QLatin1String(":/i18n"))) { QCoreApplication::installTranslator(translator);
Picking 'nl' is wrong as the phone has explicitly specified that the language of preference is 'en' (with NL localization). The uiLanguages output is correct, and unchanged between qt653 and qt681.
This is a user-visible regression when compared to the previous LTS version.
Attachments
Issue Links
- relates to
-
QTBUG-124898 [Reg 6.2 -> 6.5] Qt.uiLanguage does not work for locale changes
- Closed
-
QTBUG-129434 [[Regr: 6.7.2 -> 6.7.3]] QTranslator::load finds languages in wrong order
- Closed
-
QTBUG-112765 Create QLocaleSelector
- Open