You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
619 B
17 lines
619 B
#!/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 silentdragon.pro
|
|
|
|
# Then update the qt base translations. First, get all languages
|
|
ls res/*.qm | awk -F '[_.]' '{print $4}' | while read -r language ; do
|
|
if [ -f $QT_STATIC/translations/qtbase_$language.qm ]; then
|
|
$QT_STATIC/bin/lconvert -o res/zec_$language.qm $QT_STATIC/translations/qtbase_$language.qm res/silentdragon_$language.qm
|
|
mv res/zec_$language.qm res/silentdragon_$language.qm
|
|
fi
|
|
done
|
|
|