Android build: prepare and copy translations into the APK

And then load them at runtime.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-05-03 17:20:53 -07:00
parent 80fcd710ee
commit e47327c87a
2 changed files with 15 additions and 2 deletions

View file

@ -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 $@