Gui: Create .qm out of .ts files

This commit is contained in:
wmayer
2023-04-30 18:33:19 +02:00
parent 3a78280ed7
commit 8cc0b6ad39
46 changed files with 17 additions and 44 deletions

View File

@@ -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()