Skip to content
Permalink
Browse files

update scripts/update_ts.sh to use pylupdate5

  • Loading branch information
jef-n committed Feb 7, 2017
1 parent 94a2639 commit 5b27d827aaaa375687ef91cce0d16a28d7931250
Showing with 3 additions and 3 deletions.
  1. +3 −3 scripts/update_ts.sh
@@ -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 ../../..

0 comments on commit 5b27d82

Please sign in to comment.
You can’t perform that action at this time.