diff options
author | Robert Adam <dev@robert-adam.de> | 2020-09-06 14:39:30 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2020-09-06 14:39:30 +0300 |
commit | 401fd0b6e40ae28043e6c64e6b0e6798caab3d18 (patch) | |
tree | a85269c3fb9ab9081e3342d51e579892d01dbbe7 /scripts | |
parent | 25d02b006e2b94d97169774be175f1301812d75f (diff) |
MAINT: Fix updatetranslations.sh script
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/updatetranslations.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/updatetranslations.sh b/scripts/updatetranslations.sh index ffa24d2e3..707e0718f 100755 --- a/scripts/updatetranslations.sh +++ b/scripts/updatetranslations.sh @@ -20,7 +20,9 @@ set -u set -e file="mumble_en.ts" -dir="`dirname $0`/../src/mumble" +scriptPath="$(realpath $0)" +srcDir="$(dirname $scriptPath)/../src" +dir="$srcDir/mumble" # Make sure we are using export QT_SELECT=5 tmpfile="commitmessage.tmp" @@ -70,10 +72,10 @@ function main exit 1 fi - echo "Translation update" > $tmpfile + echo "TRANSLATION: Update translation files" > $tmpfile echo "" >> $tmpfile - lupdate -no-ui-lines -disable-heuristic similartext -locations none -no-obsolete mumble.pro -ts $file | tee -a $tmpfile || fatal "lupdate failed" + lupdate -no-ui-lines -disable-heuristic similartext -locations none -no-obsolete -no-recursive "$srcDir" "$srcDir/mumble" -ts "$file" | tee -a $tmpfile || fatal "lupdate failed" echo # Duplicate single numerusform entries in mumble_en.ts to work around #1195 |