-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.5.0
-
None
The documentation says that QQmlApplicationEngine will automatically load translations from i18n/qml_*.qm in the directory of the QML file. This works if the QML file resides in a normal filesystem but not if it is stored in the resources.
I looked into the sources of Qt and it seems that the bug is in QQmlApplicationEnginePrivate::loadTranslations(). It allows rootFile.scheme() to be "qrc" but then calls rootFile.toLocalFile() anyway, which doesn't work for qrc URLs.