diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-10-11 13:51:03 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-11 13:51:03 -0700 |
commit | d031b54d16e74becd3a5b320c5cbed62a66c9d57 (patch) | |
tree | 7d3a068d1ce390a6d1f2bcdb6bef9c93c5813c73 | |
parent | 344fc98bfc0e1ac4db3a67d1c5f68472531bc1df (diff) | |
download | subsurface-d031b54d16e74becd3a5b320c5cbed62a66c9d57.tar.gz |
Install qt translations into Mac bundle
This is much harder than it should be...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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 |