Translation is not updated by qt5_create_translation
-
Hi all,
I just noticed one thing about a (still Qt 5) project: My translations are created initially, but they are not updated when I cange something in my TS file.
In my
CMakeLists.txt
I have:find_package(Qt5LinguistTools)
and later on
if(Qt5LinguistTools_FOUND) set(TS_FILES ${CMAKE_SOURCE_DIR}/res/muckturnier_de.ts) set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION ${CMAKE_BINARY_DIR}/share/muckturnier) qt5_create_translation(QM_FILES ${muckturnier_SOURCES} ${TS_FILES} OPTIONS -pluralonly -locations none) add_custom_target(Localization ALL DEPENDS ${QM_FILES}) endif()
As said, the translation is updated if I start with an empty build directory – but when I change something in the sources and rebuild, nothing happens concerning the translation. After wiping the build directory and building from zero again, the changes are incorporated.
I'm not really a CMake pro … obviously, I'm missing something here.
Thanks in advance for all help!