mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
iOS build: create the translations to be bundled
And add them to the bundle. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d668a89df7
commit
42eee8a2e1
3 changed files with 39 additions and 2 deletions
|
@ -100,7 +100,7 @@ SOURCES += ../../../subsurface-mobile-main.cpp \
|
||||||
../../../profile-widget/diverectitem.cpp \
|
../../../profile-widget/diverectitem.cpp \
|
||||||
../../../profile-widget/divetextitem.cpp
|
../../../profile-widget/divetextitem.cpp
|
||||||
|
|
||||||
RESOURCES += qml.qrc ../../../subsurface.qrc ../../../mobile-widgets/qml/mobile-resources.qrc
|
RESOURCES += qml.qrc ../../../subsurface.qrc ../../../mobile-widgets/qml/mobile-resources.qrc translations.qrc
|
||||||
|
|
||||||
LIBS += ../install-root/lib/libcrypto.a \
|
LIBS += ../install-root/lib/libcrypto.a \
|
||||||
../install-root/lib/libdivecomputer.a \
|
../install-root/lib/libdivecomputer.a \
|
||||||
|
|
26
packaging/ios/Subsurface-mobile/translations.qrc
Normal file
26
packaging/ios/Subsurface-mobile/translations.qrc
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="/">
|
||||||
|
<file>translations/subsurface_bg_BG.qm</file>
|
||||||
|
<file>translations/subsurface_cs.qm</file>
|
||||||
|
<file>translations/subsurface_da_DK.qm</file>
|
||||||
|
<file>translations/subsurface_de_CH.qm</file>
|
||||||
|
<file>translations/subsurface_de_DE.qm</file>
|
||||||
|
<file>translations/subsurface_en_GB.qm</file>
|
||||||
|
<file>translations/subsurface_es_ES.qm</file>
|
||||||
|
<file>translations/subsurface_et_EE.qm</file>
|
||||||
|
<file>translations/subsurface_fi_FI.qm</file>
|
||||||
|
<file>translations/subsurface_fr_FR.qm</file>
|
||||||
|
<file>translations/subsurface_he.qm</file>
|
||||||
|
<file>translations/subsurface_it_IT.qm</file>
|
||||||
|
<file>translations/subsurface_nb_NO.qm</file>
|
||||||
|
<file>translations/subsurface_nl_NL.qm</file>
|
||||||
|
<file>translations/subsurface_pl_PL.qm</file>
|
||||||
|
<file>translations/subsurface_pt_BR.qm</file>
|
||||||
|
<file>translations/subsurface_pt_PT.qm</file>
|
||||||
|
<file>translations/subsurface_ro_RO.qm</file>
|
||||||
|
<file>translations/subsurface_ru_RU.qm</file>
|
||||||
|
<file>translations/subsurface_sk_SK.qm</file>
|
||||||
|
<file>translations/subsurface_sv_SE.qm</file>
|
||||||
|
<file>translations/subsurface_zh_TW.qm</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
|
@ -355,7 +355,18 @@ done
|
||||||
|
|
||||||
# now combine the arm libraries into fat libraries
|
# now combine the arm libraries into fat libraries
|
||||||
cp -a install-root-arm64 install-root
|
cp -a install-root-arm64 install-root
|
||||||
cd install-root/lib
|
pushd install-root/lib
|
||||||
for LIB in $(find . -type f -name \*.a); do
|
for LIB in $(find . -type f -name \*.a); do
|
||||||
lipo ../../install-root-armv7/lib/$LIB ../../install-root-arm64/lib/$LIB ../../install-root-x86_64/lib/$LIB -create -output $LIB
|
lipo ../../install-root-armv7/lib/$LIB ../../install-root-arm64/lib/$LIB ../../install-root-x86_64/lib/$LIB -create -output $LIB
|
||||||
done
|
done
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd ${SUBSURFACE_SOURCE}/translations
|
||||||
|
SRCS=$(ls *.ts | grep -v source)
|
||||||
|
popd
|
||||||
|
pushd Subsurface-mobile
|
||||||
|
mkdir -p translations
|
||||||
|
for src in $SRCS; do
|
||||||
|
${IOS_QT}/5.6/ios/bin/lrelease ${SUBSURFACE_SOURCE}/translations/$src -qm translations/${src/.ts/.qm}
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
|
Loading…
Add table
Reference in a new issue