wownero/utils/translations/build-translations.sh
moneromooo-monero a12ca687e0
translations: add a ready file to control which translations to build
Some translations are committed before they're ready to be used
2019-07-16 19:25:38 +00:00

27 lines
441 B
Bash
Executable File

#!/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"
then
echo "lrelease not found"
exit 1
fi
echo "using $lrelease"
if test -f translations/ready
then
languages=""
for language in $(cat translations/ready)
do
languages="$languages translations/$language.ts"
done
else
languages="translations/*.ts"
fi
"$lrelease" $languages