Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions assets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,6 @@ if (CMAKE_BUILD_TYPE STREQUAL "Release")
file(GLOB TS_FILES "translations/*.ts")
foreach(TS_FILE IN LISTS TS_FILES)
message(STATUS "process ts file: ${TS_FILE}")
find_program(LUPDATE_COMMAND
NAMES
lupdate-Qt6
lupdate
lupdate-qt${QT_VERSION_MAJOR}
lupdate-qt4
lupdate-pro
PATHS
/usr/lib/qt6/bin
/usr/bin
)
if (NOT LUPDATE_COMMAND)
message(FATAL_ERROR "lupdate command not found")
endif()
execute_process(COMMAND ${LUPDATE_COMMAND} "${CMAKE_SOURCE_DIR}/src/" -ts -no-obsolete
"${TS_FILE}"
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE OUTPUT
ERROR_VARIABLE ERROR
RESULT_VARIABLE RES)
if (RES)
message(FATAL_ERROR "process ts file result : ${RES}, with error: ${ERROR}")
endif()
message(STATUS "${OUTPUT}")
execute_process(COMMAND lrelease ${TS_FILE})
endforeach()
endif()
Expand Down
Loading