diff -r 19e481fd2847 -r 3339c75dc777 RefactoringRope/HelpDialog.py --- a/RefactoringRope/HelpDialog.py Sun Jul 06 13:27:49 2014 +0200 +++ b/RefactoringRope/HelpDialog.py Sun Jul 06 14:17:24 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):