Created TRANSLATION_FILES.txt so that translators don't need to edit CMakeLists.txt file.
This commit is contained in:
@@ -4,27 +4,15 @@
|
|||||||
# without this a "make clean" would delete the .ts files
|
# without this a "make clean" would delete the .ts files
|
||||||
set_directory_properties (PROPERTIES CLEAN_NO_CUSTOM 1)
|
set_directory_properties (PROPERTIES CLEAN_NO_CUSTOM 1)
|
||||||
|
|
||||||
#
|
include (TRANSLATION_FILES.txt)
|
||||||
# gLabels Translation Files
|
|
||||||
#
|
|
||||||
set (glabels_ts_files
|
|
||||||
glabels_C.ts
|
|
||||||
)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Template Translation Files
|
|
||||||
#
|
|
||||||
set (templates_ts_files
|
|
||||||
templates_C.ts
|
|
||||||
)
|
|
||||||
|
|
||||||
qt5_create_translation (glabels_qm_files
|
qt5_create_translation (glabels_qm_files
|
||||||
${CMAKE_SOURCE_DIR}/glabels ${glabels_ts_files}
|
${CMAKE_SOURCE_DIR}/glabels ${GLABELS_TS_FILES}
|
||||||
OPTIONS -no-obsolete
|
OPTIONS -no-obsolete
|
||||||
)
|
)
|
||||||
|
|
||||||
qt5_create_translation (templates_qm_files
|
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
|
OPTIONS -no-obsolete -locations none
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
)
|
||||||
|
|
||||||
Reference in New Issue
Block a user