mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-14 15:59:18 -05:00
qmake: Copy generated translations files into app bundle
The translations were not being added to the bundle when deploying the Mac app and thus no language other than English could be loaded.
This commit is contained in:
@@ -37,4 +37,12 @@ updateqm.input = TRANSLATIONS
|
||||
updateqm.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
|
||||
updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
|
||||
updateqm.CONFIG += no_link no_clean target_predeps
|
||||
updateqm.variable_out = copytranslations.files
|
||||
QMAKE_EXTRA_COMPILERS += updateqm
|
||||
|
||||
# Copy translations into the bundle when one is created
|
||||
mac:contains(CONFIG, "app_bundle") {
|
||||
copytranslations.path = Contents/MacOS/translations
|
||||
copytranslations.depends = updateqm
|
||||
QMAKE_BUNDLE_DATA += copytranslations
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user