Skip to content

Commit

Permalink
cmake : fix translation
Browse files Browse the repository at this point in the history
because of get_filename_component within Qt5LinguistToolsMacros.cmake
hydrogen.xy.ts files where all generating the same rule named hydrogen.qm
  • Loading branch information
jeremyz committed Jun 10, 2018
1 parent 2cbb04f commit eda1cf5
Show file tree
Hide file tree
Showing 19 changed files with 4 additions and 114 deletions.
106 changes: 0 additions & 106 deletions cmake/Qt5LinguistToolsMacros.cmake

This file was deleted.

12 changes: 4 additions & 8 deletions data/i18n/CMakeLists.txt
@@ -1,12 +1,8 @@
# make clean does not delete *.ts and *.qm files
SET_DIRECTORY_PROPERTIES(PROPERTIES CLEAN_NO_CUSTOM 1)

FILE(GLOB TRANSLATION_FILES ${CMAKE_CURRENT_LIST_DIR}/*.ts)
FILE(GLOB TS_FILES ${CMAKE_CURRENT_LIST_DIR}/*.ts)

INCLUDE(Qt5LinguistToolsMacros)

#QT5_CREATE_TRANSLATION(TRANSLATION_MESSAGES ${FILES_TO_TRANSLATE} ${TRANSLATION_FILES})
QT5_ADD_TRANSLATION(TRANSLATION_QM ${TRANSLATION_FILES})
#ADD_CUSTOM_TARGET(translations_update DEPENDS ${TRANSLATION_MESSAGES})
ADD_CUSTOM_TARGET(translations ALL DEPENDS ${TRANSLATION_QM})
INSTALL(FILES ${TRANSLATION_QM} DESTINATION "${H2_SYS_PATH}/data/i18n")
QT5_ADD_TRANSLATION(QM_FILES ${TS_FILES})
ADD_CUSTOM_TARGET(translations ALL DEPENDS ${QM_FILES})
INSTALL(FILES ${QM_FILES} DESTINATION "${H2_SYS_PATH}/data/i18n")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit eda1cf5

Please sign in to comment.