Always update translations during make.

Wed, 26 Oct 2022 15:46:10 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 26 Oct 2022 15:46:10 +0200
changeset 425
d3f439ba6fd8
parent 424
f7e0efc8df02
child 426
3c3d6585c395

Always update translations during make.

CMakeLists.txt file | annotate | diff | comparison | revisions
--- a/CMakeLists.txt	Mon Oct 24 20:01:43 2022 +0200
+++ b/CMakeLists.txt	Wed Oct 26 15:46:10 2022 +0200
@@ -14,7 +14,6 @@
 # Compile flags
 
 option(BUILD_DESIGNER_PLUGINS "If on, you will only build and install the designer plugins." OFF)
-option(UPDATE_TRANSLATIONS "Enable rescanning sources to update .ts files" ON)
 
 IF( ${BUILD_DESIGNER_PLUGINS} )
   message(STATUS "Building designer plugins" )
@@ -364,16 +363,8 @@
 
 ELSE()
 
-  # Run with cmake -DUPDATE_TRANSLATIONS=ON ..
-  #    or    cmake -DUPDATE_TRANSLATIONS=OFF ..
-
-  #  if(UPDATE_TRANSLATIONS)
-    message("** parse sources for new translations")
-    qt5_create_translation(QM_FILES ${SOURCE_FILES} ${TS_FILES})
-    # else()
-    #  message("** update qm files")
-    #qt5_add_translation(QM_FILES ${TS_FILES})
-    #endif()
+  message("** parse sources for new translations")
+  qt5_create_translation(QM_FILES ${SOURCE_FILES} ${TS_FILES})
 
   SET( bmsapp_DESKTOP
      ${ROOTDIR}/bmsapp.desktop

mercurial