Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.4.3, 6.6.1
-
None
-
Windows 10, MSVC++ 2022.
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-112765 Create QLocaleSelector
- Open