When I convert my Qt Designer mainwindow.ui file into mainwindow.py, mainwindow.py file makes the translatable strings like this:
MainWindow.setWindowTitle(_translate("MainWindow", "Program name", None))

And when I convert my .pro file using pylupdate4.exe, the .ts translation files come up empty. Unless I change my mainwindow.py file like this: MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "Program name", None))

And it works fine. So this is a bug in pylupdate4?

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to