Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update scripts/update_ts.sh to use pylupdate5
  • Loading branch information
jef-n committed Feb 7, 2017
1 parent 94a2639 commit 5b27d82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/update_ts.sh
Expand Up @@ -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

Expand Down Expand Up @@ -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 ../../..
Expand Down

0 comments on commit 5b27d82

Please sign in to comment.