From 4a05c736fa3ee2bde8af87369ecf2a042f1ce86e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 30 Mar 2014 10:19:48 +0900 Subject: [PATCH] tweak build_ui to handle qt5 ui translations --- tools/build_ui.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build_ui.sh b/tools/build_ui.sh index a697fc77a..c26521cfd 100755 --- a/tools/build_ui.sh +++ b/tools/build_ui.sh @@ -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