summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-05-03 17:20:53 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-05-03 17:20:53 -0700
commite47327c87a1b456852e8594eedc2882a7e1c9bb4 (patch)
tree4b47bbe3b89e605cdf85fb139c40ee215a7b5bea /packaging
parent80fcd710eef489cd2c7038e53400bdc30a1f6ca1 (diff)
downloadsubsurface-e47327c87a1b456852e8594eedc2882a7e1c9bb4.tar.gz
Android build: prepare and copy translations into the APK
And then load them at runtime. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/android/build.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/packaging/android/build.sh b/packaging/android/build.sh
index 2f306630e..dfe489eef 100644
--- a/packaging/android/build.sh
+++ b/packaging/android/build.sh
@@ -367,6 +367,12 @@ rm -rf android-mobile
cp -a $SUBSURFACE_SOURCE/android-mobile .
sed -i -e "s/@SUBSURFACE_MOBILE_VERSION@/\"$SUBSURFACE_MOBILE_VERSION\"/;s/@BUILD_NR@/$BUILD_NR/" android-mobile/AndroidManifest.xml
+# now make the translations
+make translations
+mkdir -p assets/translations
+cp -a translations/*.qm assets/translations
+cp -a ${QT5_ANDROID}/android_${QT_ARCH}/translations/*.qm assets/translations
+
# now build Subsurface and use the rest of the command line arguments
make $@