]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Disable translation of GUI
authorvsv <vsv@opencascade.com>
Mon, 7 Oct 2019 11:54:06 +0000 (14:54 +0300)
committervsv <vsv@opencascade.com>
Mon, 7 Oct 2019 11:54:06 +0000 (14:54 +0300)
src/ModuleBase/CMakeLists.txt
src/PartSet/CMakeLists.txt
src/SHAPERGUI/CMakeLists.txt
src/XGUI/CMakeLists.txt

index 59caaee931ce3814dcd6a037c0024998de2fffa1..1f6aca0631f2e7d36019e787f24c5efee4428da0 100644 (file)
@@ -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})
index 7d025325549ced06a2a6cc2df3e0065b1eb14509..0ddb4597d06b9c238e1b55e287ef0d76156a7c02 100644 (file)
@@ -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})
index ecfe4194e943dcddd520cec343a2d3c1b57b9fc2..e15c9080c9f5b028e2887b0d013c841fed6efe5b 100644 (file)
@@ -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})
 
 
index 5769f19f316516f4b3a9950a293f4d032b95569b..1e23091c2525213cc852c06a88188be815752c0e 100644 (file)
@@ -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})