diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt index 3b61e15..fcff48e 100644 --- a/translations/CMakeLists.txt +++ b/translations/CMakeLists.txt @@ -4,27 +4,15 @@ # without this a "make clean" would delete the .ts files set_directory_properties (PROPERTIES CLEAN_NO_CUSTOM 1) -# -# gLabels Translation Files -# -set (glabels_ts_files - glabels_C.ts -) - -# -# Template Translation Files -# -set (templates_ts_files - templates_C.ts -) +include (TRANSLATION_FILES.txt) qt5_create_translation (glabels_qm_files - ${CMAKE_SOURCE_DIR}/glabels ${glabels_ts_files} + ${CMAKE_SOURCE_DIR}/glabels ${GLABELS_TS_FILES} OPTIONS -no-obsolete ) qt5_create_translation (templates_qm_files - ${CMAKE_CURRENT_BINARY_DIR}/template-strings.h ${templates_ts_files} + ${CMAKE_CURRENT_BINARY_DIR}/template-strings.h ${TEMPLATES_TS_FILES} OPTIONS -no-obsolete -locations none ) diff --git a/translations/TRANSLATION_FILES.txt b/translations/TRANSLATION_FILES.txt new file mode 100644 index 0000000..9aeb377 --- /dev/null +++ b/translations/TRANSLATION_FILES.txt @@ -0,0 +1,19 @@ +############################################################ +# +# gLabels Translation Files +# +############################################################ +set (GLABELS_TS_FILES + glabels_C.ts + glabels_de_DE.ts +) + +############################################################ +# +# Translation Files for Product Template Database +# +############################################################ +set (TEMPLATES_TS_FILES + templates_C.ts +) +