Integrate translations into build process
This commit is contained in:
15
src/scripts/dotranslations.sh
Executable file
15
src/scripts/dotranslations.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z $QT_STATIC ]; then
|
||||
echo "QT_STATIC is not set. Please set it to the base directory of a statically compiled Qt";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
rm -f res/*.qm
|
||||
$QT_STATIC/bin/lrelease zec-qt-wallet.pro
|
||||
|
||||
# Then update the qt base translations. First, get all languages
|
||||
ls res/*.qm | awk -F '[_.]' '{print $4}' | while read -r language ; do
|
||||
$QT_STATIC/bin/lconvert -o res/zec_$language.qm $QT_STATIC/translations/qtbase_$language.qm res/zec_qt_wallet_$language.qm
|
||||
mv res/zec_$language.qm res/zec_qt_wallet_$language.qm
|
||||
done
|
||||
Reference in New Issue
Block a user