linguist 669 Bytes
#!/bin/bash
#
echo "Call linguist"
# Get actual path of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
#
# Specify here the current path of linguist:
LINGPATH="/home/hinrichsen/Software/Qt/5.8/gcc_64/bin"
cd $DIR/application/
#
# Update translation files:
$LINGPATH/lupdate application.pro
#
# Enter translation file folder
cd $DIR/application/resources/translations
#
# Drop obsolete strings in the German translation
$LINGPATH/lupdate -no-obsolete $DIR/application/ -ts justintonation_de.ts
#
# Call linguist:
$LINGPATH/linguist justintonation_de.ts
$LINGPATH/linguist justintonation_ru.ts
cd $DIR/application/
$LINGPATH/lrelease application.pro