--- a/ProjectPyramid/PyramidRoutesDialog.py Sat Apr 26 17:12:15 2014 +0200 +++ b/ProjectPyramid/PyramidRoutesDialog.py Fri Jul 11 19:01:33 2014 +0200 @@ -15,8 +15,9 @@ import os -from PyQt4.QtCore import QProcess, QTimer, pyqtSlot, Qt, QCoreApplication -from PyQt4.QtGui import QDialog, QDialogButtonBox, QLineEdit, QTreeWidgetItem +from PyQt5.QtCore import QProcess, QTimer, pyqtSlot, Qt, QCoreApplication +from PyQt5.QtWidgets import (QDialog, QDialogButtonBox, QLineEdit, + QTreeWidgetItem) from E5Gui import E5MessageBox @@ -102,7 +103,7 @@ self.routes.clear() if not self.buffer: - QTreeWidgetItem(self.routes, [self.trUtf8("No routes found.")]) + QTreeWidgetItem(self.routes, [self.tr("No routes found.")]) self.routes.setHeaderHidden(True) else: lines = self.buffer.splitlines() @@ -134,7 +135,7 @@ @param projectPath path to the Pyramid project (string) @return flag indicating a successful start of the process """ - QTreeWidgetItem(self.routes, [self.trUtf8("Getting routes...")]) + QTreeWidgetItem(self.routes, [self.tr("Getting routes...")]) self.routes.setHeaderHidden(True) self.errorGroup.hide() @@ -166,8 +167,8 @@ self.inputGroup.setEnabled(False) E5MessageBox.critical( self, - self.trUtf8('Process Generation Error'), - self.trUtf8( + self.tr('Process Generation Error'), + self.tr( 'The process {0} could not be started. ' 'Ensure, that it is in the search path.' ).format(cmd))