From: vsv Date: Mon, 7 Oct 2019 11:54:06 +0000 (+0300) Subject: Disable translation of GUI X-Git-Tag: V9_4_0a2~4^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=49d9e02bb5a1cef744a86018ffcfcf31a5032c74;p=modules%2Fshaper.git Disable translation of GUI --- diff --git a/src/ModuleBase/CMakeLists.txt b/src/ModuleBase/CMakeLists.txt index 59caaee93..1f6aca063 100644 --- a/src/ModuleBase/CMakeLists.txt +++ b/src/ModuleBase/CMakeLists.txt @@ -261,7 +261,9 @@ IF (${UPDATE_TRANSLATION}) OPTIONS -extensions cpp -no-recursive ) ELSE(${UPDATE_TRANSLATION}) - QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES}) + IF(${MAKE_TRANSLATION}) + QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES}) + ENDIF(${MAKE_TRANSLATION}) ENDIF(${UPDATE_TRANSLATION}) SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES}) diff --git a/src/PartSet/CMakeLists.txt b/src/PartSet/CMakeLists.txt index 7d0253255..0ddb4597d 100644 --- a/src/PartSet/CMakeLists.txt +++ b/src/PartSet/CMakeLists.txt @@ -146,7 +146,9 @@ IF (${UPDATE_TRANSLATION}) OPTIONS -extensions cpp -no-recursive ) ELSE(${UPDATE_TRANSLATION}) - QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES}) + IF(${MAKE_TRANSLATION}) + QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES}) + ENDIF(${MAKE_TRANSLATION}) ENDIF(${UPDATE_TRANSLATION}) SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${PROJECT_COMPILED_RESOURCES} ${QM_RESOURCES}) diff --git a/src/SHAPERGUI/CMakeLists.txt b/src/SHAPERGUI/CMakeLists.txt index ecfe4194e..e15c9080c 100644 --- a/src/SHAPERGUI/CMakeLists.txt +++ b/src/SHAPERGUI/CMakeLists.txt @@ -75,7 +75,9 @@ IF (${UPDATE_TRANSLATION}) OPTIONS -extensions cpp -no-recursive ) ELSE(${UPDATE_TRANSLATION}) - QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES}) + IF(${MAKE_TRANSLATION}) + QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES}) + ENDIF(${MAKE_TRANSLATION}) ENDIF(${UPDATE_TRANSLATION}) diff --git a/src/XGUI/CMakeLists.txt b/src/XGUI/CMakeLists.txt index 5769f19f3..1e23091c2 100644 --- a/src/XGUI/CMakeLists.txt +++ b/src/XGUI/CMakeLists.txt @@ -186,7 +186,9 @@ IF (${UPDATE_TRANSLATION}) OPTIONS -extensions cpp -no-recursive ) ELSE(${UPDATE_TRANSLATION}) - QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES}) + IF(${MAKE_TRANSLATION}) + QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES}) + ENDIF(${MAKE_TRANSLATION}) ENDIF(${UPDATE_TRANSLATION})