Consider all QML files for translations
Ensure QML files not used in the current build (as they're Qt-version-specific and a different Qt version is used) are still considered when generating the XML files for translations. Otherwise they will be showing as vanished or obsoleted when they shouldn't.
This commit is contained in:
parent
a829ca0e65
commit
e8c5fdfb56
|
@ -168,6 +168,11 @@ endif ()
|
|||
message(STATUS "Adding Qt-version-specific resource file \"${QML_FILE}\" to build")
|
||||
list(APPEND QML_SRC_FILES "${QML_FILE}")
|
||||
|
||||
# add other QML files to "EXCLUDED_FILES" so they're still considered for translations in any case
|
||||
file(GLOB OTHER_QML_FILES "resources/qml*.qrc")
|
||||
list(REMOVE_ITEM OTHER_QML_FILES ${QML_SRC_FILES})
|
||||
list(APPEND EXCLUDED_FILES ${OTHER_QML_FILES})
|
||||
|
||||
# apply further configuration
|
||||
if (WIDGETS_GUI OR QUICK_GUI)
|
||||
include(QtGuiConfig)
|
||||
|
|
Loading…
Reference in New Issue