fuel-scm/intl/convert.sh
kostas 73000f53bf Moved over to Qt's native translation file format
FossilOrigin-Name: f12aab3a403d0a1cab42eec7ddb476dd47cb5da3
2012-11-23 07:28:15 +00:00

23 lines
427 B
Bash
Executable File

#!/bin/sh
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PRJDIR=$SCRIPTDIR/..
INTLDIR=$SCRIPTDIR
echo "Converting localizations"
rm -rf $PRJDIR/rsrc/intl
mkdir $PRJDIR/rsrc/intl
for i in $INTLDIR/*.ts
do
BASE=`basename $i .ts`
# Convert all except the en_US which is
# the original text in the code
if [ "$BASE" != "en_US" ]; then
echo "$TARGET"
lrelease $i -qm $PRJDIR/rsrc/intl/$BASE.qm
fi
done