Skip to content

Commit

Permalink
Add debug log for Windows QML translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Nov 1, 2020
1 parent a45f4ef commit 4f1fd79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui-qml/languages/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ listFilterRegex(TS_FILES_FOR_QM "YourLanguage.ts$")
# Source files (used for 'location' and 'context' in TS files)
file(GLOB_RECURSE SOURCES "${CMAKE_CURRENT_LIST_DIR}/../src/")

message(STATUS "qt5_create_translation < ${SOURCES} / ${TS_FILES_FOR_TS}")
qt5_create_translation(QM_FILES_FOR_TS ${SOURCES} ${TS_FILES_FOR_TS}) # Re-generate TS and generate QM for 'YourLanguage'
message(STATUS "qt5_create_translation > ${QM_FILES_FOR_TS}")

message(STATUS "qt5_add_translation < ${TS_FILES_FOR_QM}")
qt5_add_translation(QM_FILES ${TS_FILES_FOR_QM}) # Only generate QM for actual translations
message(STATUS "qt5_add_translation > ${QM_FILES}")

add_custom_target("gui-qml_translations" ALL DEPENDS ${TS_FILES_FOR_TS} ${QM_FILES_FOR_TS} ${QM_FILES})

0 comments on commit 4f1fd79

Please sign in to comment.