src/platform/qt/ts.cmake (view raw)
1file(GLOB TRANSLATION_FILES "${QM_BASE}/*.qm")
2file(WRITE ${TRANSLATION_QRC} "<RCC>\n\t<qresource prefix=\"/translations/\">\n")
3message(STATUS ${TRANSLATION_FILES})
4foreach(TS ${TRANSLATION_FILES})
5 message(STATUS ${TS})
6 get_filename_component(TS_BASE "${TS}" NAME)
7 file(APPEND ${TRANSLATION_QRC} "\t\t<file>${TS_BASE}</file>\n")
8endforeach()
9file(APPEND ${TRANSLATION_QRC} "\t</qresource>\n</RCC>")