tweak build_ui to handle qt5 ui translations

This commit is contained in:
Damien Elmes 2014-03-30 10:19:48 +09:00
parent 7dc26ed31d
commit 4a05c736fa

View File

@ -29,7 +29,7 @@ do
echo " * "$py
pyuic4 $i -o $py
# munge the output to use gettext
perl -pi.bak -e 's/QtGui.QApplication.translate\(".*?", /_(/; s/, None, QtGui.*/))/' $py
perl -pi.bak -e 's/(QtGui\.QApplication\.)?_?translate\(".*?", /_(/; s/, None.*/))/' $py
rm $py.bak
fi
done