diff --git a/CoreApp/CMakeLists.txt b/CoreApp/CMakeLists.txt
index 554fdca64d3385aaee268e74245d02a06a04bd95..2f3899c5d311c810686923a73b77f39b675bf0d4 100644
--- a/CoreApp/CMakeLists.txt
+++ b/CoreApp/CMakeLists.txt
@@ -44,8 +44,6 @@ acg_append_files (headers "*.hh" ${directories})
acg_append_files (sources "*.cc" ${directories})
acg_append_files (ui "*.ui" ${directories})
-set (COREAPP_FILES_TO_TRANSLATE ${COREAPP_FILES_TO_TRANSLATE} ${sources} ${ui} ${headers})
-
# remove template cc files from source file list
acg_drop_templates (sources)
@@ -65,17 +63,6 @@ else ()
acg_add_executable (OpenFlipper ${uic_targets} ${sources} ${headers} ${moc_targets})
endif ()
-# generate/use translation files
-# run with UPDATE_TRANSLATIONS set to on to build qm files
-option (UPDATE_TRANSLATIONS "Update source translation translations/CoreApp_de_DE.ts files (WARNING: make clean will delete the source .ts files! Danger!)")
-if (UPDATE_TRANSLATIONS)
- qt4_create_translation(QM_FILES ${COREAPP_FILES_TO_TRANSLATE} translations/CoreApp_de_DE.ts )
-else (UPDATE_TRANSLATIONS)
- qt4_add_translation(QM_FILES translations/CoreApp_de_DE.ts )
-endif (UPDATE_TRANSLATIONS)
-
-add_custom_target (translations_target DEPENDS ${QM_FILES})
-add_dependencies( OpenFlipper translations_target )
target_link_libraries (OpenFlipper
OpenMeshCore
@@ -104,9 +91,29 @@ if (APPLE)
)
endif ()
+set (COREAPP_FILES_TO_TRANSLATE ${COREAPP_FILES_TO_TRANSLATE} ${sources} ${ui} ${headers})
+
+# generate/use translation files
+# run with UPDATE_TRANSLATIONS set to on to build qm files
+option (UPDATE_TRANSLATIONS "Update source translation translations/CoreApp_de_DE.ts files (WARNING: make clean will delete the source .ts files! Danger!)")
+if (UPDATE_TRANSLATIONS)
+ qt4_create_translation(QM_FILES ${COREAPP_FILES_TO_TRANSLATE} translations/CoreApp_de_DE.ts )
+else (UPDATE_TRANSLATIONS)
+ qt4_add_translation(QM_FILES translations/CoreApp_de_DE.ts )
+endif (UPDATE_TRANSLATIONS)
+
+# create a target for the translation files ( and object files )
+# Use this target, to update only the translations
+add_custom_target (translations_target_core DEPENDS ${QM_FILES})
+
+# Build translations with the application
+add_dependencies(OpenFlipper translations_target_core )
+
# Copy all translation files after build
of_copy_translations( OpenFlipper )
+
+
# copy all needed files to "Build" directory to allow a direct execution from it
# the copy_after_build macro (common.cmake) copies the whole directory without svn files
acg_copy_after_build (OpenFlipper "${CMAKE_CURRENT_SOURCE_DIR}/../Shaders" "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Shaders")
diff --git a/CoreApp/translations/CoreApp_de_DE.ts b/CoreApp/translations/CoreApp_de_DE.ts
index e79e39d40f89a4bc0e019a6009d35ffcf734267e..5ff4838a2bfef6211b88bccff2112e5ce6b5e151 100644
--- a/CoreApp/translations/CoreApp_de_DE.ts
+++ b/CoreApp/translations/CoreApp_de_DE.ts
@@ -274,7 +274,7 @@ Wollen sie das Plugin dennoch aktivieren?
Change View Mode
-
+ Ansicht ändern
@@ -928,7 +928,7 @@ You can select multiple modes at the same time.
Stereo
-
+ Stereo
@@ -1334,7 +1334,7 @@ p, li { white-space: pre-wrap; }
Change View Mode
-
+ Ansicht ändern
@@ -1344,7 +1344,7 @@ p, li { white-space: pre-wrap; }
Remove Mode
-
+ Ansicht entfernen