Cmake and QM - Create .ts files without obsolete strings and ui refernces
-
Hi.
How can do using cmake and qt to create language fiels without obsolete strings and without ui references?
I'm not able to sue -no-onbsolete and "-no-ui-lines"
Source file:
https://github.com/bovirus/caesium-image-compressor/blob/main/CMakeLists.txt
SET(TS_FILES
resources/i18n/caesium_en_US.ts
resources/i18n/caesium_it_IT.ts
)set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION ${CMAKE_BINARY_DIR}/i18n)
if (QT_VERSION_MAJOR EQUAL "6")
qt5_create_translation(QM_FILES
${CMAKE_SOURCE_DIR}
${TS_FILES}
LUPDATE_OPTIONS ${LUPDATE_OPTIONS}
)
else ()
qt6_create_translation(QM_FILES
${CMAKE_SOURCE_DIR}
${TS_FILES}
LUPDATE_OPTIONS ${LUPDATE_OPTIONS}
)
endif ()What's wrong about use of "-no-update" options?
Thanks. KR.
-
@bovirus2 said in Cmake and QM - Create .ts files without obsolete strings and ui refernces:
What's wrong about use of "-no-update" options?
lupdate has no such an option: https://doc.qt.io/qt-6/linguist-lupdate.html