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