tweak build_ui to handle qt5 ui translations
This commit is contained in:
parent
7dc26ed31d
commit
4a05c736fa
@ -29,7 +29,7 @@ do
|
|||||||
echo " * "$py
|
echo " * "$py
|
||||||
pyuic4 $i -o $py
|
pyuic4 $i -o $py
|
||||||
# munge the output to use gettext
|
# 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
|
rm $py.bak
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user