Gui: Create .qm out of .ts files
This commit is contained in:
@@ -85,3 +85,13 @@ function(qt_create_resource_file outfile)
|
||||
string(APPEND QRC " </qresource>\n</RCC>\n")
|
||||
file(WRITE ${outfile} ${QRC})
|
||||
endfunction()
|
||||
|
||||
function(qt_create_resource_file_prefix outfile)
|
||||
set(QRC "<RCC>\n <qresource prefix=\"/translations\">\n")
|
||||
foreach (it ${ARGN})
|
||||
get_filename_component(qmfile "${it}" NAME)
|
||||
string(APPEND QRC " <file>${qmfile}</file>")
|
||||
endforeach()
|
||||
string(APPEND QRC " </qresource>\n</RCC>\n")
|
||||
file(WRITE ${outfile} ${QRC})
|
||||
endfunction()
|
||||
|
||||
Reference in New Issue
Block a user