From 1c618ffd8fb3c2ee06f56a2f37ccb65c3fc22a05 Mon Sep 17 00:00:00 2001 From: Ronny Standtke Date: Thu, 9 May 2024 21:21:16 +0200 Subject: [PATCH] include translations of the FreeCAD App --- src/App/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/App/CMakeLists.txt b/src/App/CMakeLists.txt index f618c91f93..fd5e798d08 100644 --- a/src/App/CMakeLists.txt +++ b/src/App/CMakeLists.txt @@ -317,7 +317,15 @@ SET(FreeCADApp_HPP_SRCS StringHasher.h ) +# auto-generate resource file with all available translations +set (FreeCADApp_TR_QRC ${CMAKE_CURRENT_BINARY_DIR}/Resources/App_translation.qrc) +qt_find_and_add_translation(QM_SRCS "Resources/translations/*_*.ts" + ${CMAKE_CURRENT_BINARY_DIR}/Resources/translations) +qt_create_resource_file(${FreeCADApp_TR_QRC} ${QM_SRCS}) +qt_add_resources(FreeCADApp_QRC_SRCS ${FreeCADApp_TR_QRC}) + SET(FreeCADApp_SRCS + ${FreeCADApp_QRC_SRCS} ${FreeCADApp_CPP_SRCS} ${FreeCADApp_HPP_SRCS} ${FreeCADApp_XML_SRCS}