update scripts/update_ts.sh to use pylupdate5

This commit is contained in:
Juergen E. Fischer 2017-02-07 02:39:06 +01:00
parent 94a263995b
commit 5b27d827aa

View File

@ -55,7 +55,7 @@ else
fi
if ! type pylupdate5 >/dev/null 2>&1; then
echo "pylupdate4 not found"
echo "pylupdate5 not found"
exit 1
fi
@ -105,13 +105,13 @@ fi
echo Updating python translations
cd python
pylupdate4 user.py utils.py {console,pyplugin_installer}/*.{py,ui} -ts python-i18n.ts
pylupdate5 user.py utils.py {console,pyplugin_installer}/*.{py,ui} -ts python-i18n.ts
perl ../scripts/ts2cpp.pl python-i18n.ts python-i18n.cpp
rm python-i18n.ts
cd ..
for i in python/plugins/*/CMakeLists.txt; do
cd ${i%/*}
pylupdate4 -tr-function trAlgorithm $(find . -name "*.py" -o -name "*.ui") -ts python-i18n.ts
pylupdate5 -tr-function trAlgorithm $(find . -name "*.py" -o -name "*.ui") -ts python-i18n.ts
perl ../../../scripts/ts2cpp.pl python-i18n.ts python-i18n.cpp
rm python-i18n.ts
cd ../../..