- 
    
 User Story
        
     - 
    Resolution: Done
 - 
    
P2: Important
 - 
    None
 
- 
        f7766a3ab3b3ed3b1d29ea9ff9f5c48b42099ead
 
Support embedding translations (.qm files) into binaries.
This is possible with qmake:
CONFIG += embed_translations TRANSLATIONS += app_de.ts
We should allow the same functionality with CMake.
Following snippet comes close:
set(TS_FILES tra_de.ts) // [...] qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES}) qt6_add_resources(mytarget "mytarget" PREFIX "i18n" FILES ${QM_FILES})
Anyhow, the $QM_FILES contain an absolute path, which seems to be embedded as file name in the generated resource file.
- relates to
 - 
                    
QTBUG-88605 Document target based qt_add_resources API
-         
 - Closed
 
 -         
 - 
                    
QTBUG-121980 Support embedding Qt's translation files into executable
-         
 - Closed
 
 -         
 
- resulted from
 - 
                    
        
        QTCREATORBUG-25079
        App wizards: Improve i18n support
    
-         
     - Closed
 
 -