2015-07-14 22:28:25 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
lrelease=`which lrelease 2> /dev/null`
|
|
|
|
if test -z "$lrelease"
|
|
|
|
then
|
|
|
|
lrelease=`which lrelease-qt4 2> /dev/null`
|
|
|
|
fi
|
|
|
|
if test -z "$lrelease"
|
2019-11-15 15:21:22 +02:00
|
|
|
then
|
|
|
|
lrelease=`which lrelease-qt5 2> /dev/null`
|
|
|
|
fi
|
|
|
|
if test -z "$lrelease"
|
2015-07-14 22:28:25 +03:00
|
|
|
then
|
|
|
|
echo "lrelease not found"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "using $lrelease"
|
2019-07-16 22:24:56 +03:00
|
|
|
if test -f translations/ready
|
|
|
|
then
|
|
|
|
languages=""
|
|
|
|
for language in $(cat translations/ready)
|
|
|
|
do
|
2019-11-15 15:21:46 +02:00
|
|
|
languages="$languages translations/monero_$language.ts"
|
2019-07-16 22:24:56 +03:00
|
|
|
done
|
|
|
|
else
|
|
|
|
languages="translations/*.ts"
|
|
|
|
fi
|
|
|
|
"$lrelease" $languages
|
2015-07-14 22:28:25 +03:00
|
|
|
|