--- a/RefactoringRope/HelpDialog.py Mon May 12 19:08:18 2014 +0200 +++ b/RefactoringRope/HelpDialog.py Sun Jul 06 14:23:25 2014 +0200 @@ -9,7 +9,8 @@ from __future__ import unicode_literals -from PyQt4.QtGui import QDialog, QDialogButtonBox, QTextDocument, QTextCursor +from PyQt5.QtGui import QTextDocument, QTextCursor +from PyQt5.QtWidgets import QDialog, QDialogButtonBox from Ui_HelpDialog import Ui_HelpDialog @@ -32,7 +33,7 @@ self.setupUi(self) self.searchButton = self.buttonBox.addButton( - self.trUtf8("Search..."), QDialogButtonBox.ActionRole) + self.tr("Search..."), QDialogButtonBox.ActionRole) self.__searchDlg = None if Globals.isWindowsPlatform(): @@ -47,7 +48,7 @@ self.helpEdit.setPlainText(txt) except IOError as err: self.helpEdit.setPlainText( - self.trUtf8("Could not read file {0}.\nReason: {1}") + self.tr("Could not read file {0}.\nReason: {1}") .format(helpfile, str(err))) def on_buttonBox_clicked(self, button):