diff options
-rw-r--r-- | subsurface-install.pri | 4 | ||||
-rw-r--r-- | subsurface.pro | 11 |
2 files changed, 14 insertions, 1 deletions
diff --git a/subsurface-install.pri b/subsurface-install.pri index 9d674153f..eae2a661c 100644 --- a/subsurface-install.pri +++ b/subsurface-install.pri @@ -2,6 +2,7 @@ marbledir.files = $$MARBLEDIR xslt.files = $$XSLT_FILES doc.files = $$DOC_FILES translation.files = $$replace(TRANSLATIONS, .ts, .qm) +qttranslation.files = $$join(QTTRANSLATIONS," "$$[QT_INSTALL_TRANSLATIONS]/,$$[QT_INSTALL_TRANSLATIONS]/) nltab = $$escape_expand(\\n\\t) @@ -22,8 +23,9 @@ mac { xslt.path = $$datadir doc.path = $$datadir/doc translation.path = Contents/Resources/translations + qttranslation.path = Contents/Resources/translations doc.files = $$files($$doc.files) - QMAKE_BUNDLE_DATA += marbledir xslt doc translation + QMAKE_BUNDLE_DATA += marbledir xslt doc translation qttranslation mac_deploy.target = mac-deploy mac_deploy.commands += $$[QT_INSTALL_BINS]/macdeployqt $${TARGET}.app diff --git a/subsurface.pro b/subsurface.pro index afbc766e5..08eb7a77b 100644 --- a/subsurface.pro +++ b/subsurface.pro @@ -143,6 +143,17 @@ TRANSLATIONS = \ translations/subsurface_sk_SK.ts \ translations/subsurface_sv_SE.ts +QTTRANSLATIONS = \ + qt_da.qm \ + qt_de.qm \ + qt_es.qm \ + qt_fr.qm \ + qt_pl.qm \ + qt_pt.qm \ + qt_ru.qm \ + qt_sk.qm \ + qt_sv.qm + doc.commands += $$escape_expand(\\n\\t)$(MAKE) -C $$PWD/Documentation OUT=$$OUT_PWD/Documentation/ doc all.depends += doc QMAKE_EXTRA_TARGETS += doc all |