Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.4.3, 6.6.1
-
None
-
Windows 10, MSVC++ 2022.
-
1
-
12f8ebf5c (dev), ee65d651a (6.9), ccffe9b8c (6.8)
-
Foundation Sprint 123
Description
My app has two Chinese translations: Chinese (China) and Chinese (Taiwan). Translation files are named app_zh.qm and app_zh_TW.qm accordingly.
When I try to load Chinese (Taiwan) translation, Qt 6.x loads Chinese (China) instead. Qt 5.12.12 works fine.
Code I use:
QTranslator t; t.load(QLocale("zh_TW"), "app", "_", path);
QTranslator::load succeeds and loads QLocale("zh") translation instead of QLocale("zh_TW").
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
-
QTBUG-131894 qtranslator loads wrong locale
- Closed
For Gerrit Dashboard: QTBUG-121418 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
616601,3 | Add tests that zh-TW now correctly prefers zh-TW over zh translation | dev | qt/qtbase | Status: MERGED | +2 | 0 |
617000,2 | Add tests that zh-TW now correctly prefers zh-TW over zh translation | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
617118,3 | Add tests that zh-TW now correctly prefers zh-TW over zh translation | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |