RefactoringRope/HistoryDialog.py

branch
eric5
changeset 86
3339c75dc777
parent 76
936b2a98fe4e
child 88
e71619898d0f
child 94
03d6a17c66ac
diff -r 19e481fd2847 -r 3339c75dc777 RefactoringRope/HistoryDialog.py
--- a/RefactoringRope/HistoryDialog.py	Sun Jul 06 13:27:49 2014 +0200
+++ b/RefactoringRope/HistoryDialog.py	Sun Jul 06 14:17:24 2014 +0200
@@ -9,8 +9,8 @@
 
 from __future__ import unicode_literals
 
-from PyQt4.QtCore import Qt, pyqtSlot
-from PyQt4.QtGui import QDialogButtonBox, QListWidgetItem, QApplication
+from PyQt5.QtCore import Qt, pyqtSlot
+from PyQt5.QtWidgets import QDialogButtonBox, QListWidgetItem, QApplication
 
 from E5Gui.E5Application import e5App
 from E5Gui import E5MessageBox
@@ -44,16 +44,16 @@
         
         if self.__isUndo:
             self.__actionButton = self.buttonBox.addButton(
-                self.trUtf8("&Undo"),
+                self.tr("&Undo"),
                 QDialogButtonBox.AcceptRole)
-            self.description.setText(self.trUtf8("Undoable Changes"))
-            title = self.trUtf8("Undo History")
+            self.description.setText(self.tr("Undoable Changes"))
+            title = self.tr("Undo History")
         else:
             self.__actionButton = self.buttonBox.addButton(
-                self.trUtf8("&Redo"),
+                self.tr("&Redo"),
                 QDialogButtonBox.AcceptRole)
-            self.description.setText(self.trUtf8("Redoable Changes"))
-            title = self.trUtf8("Redo History")
+            self.description.setText(self.tr("Redoable Changes"))
+            title = self.tr("Redo History")
         self.buttonBox.addButton(QDialogButtonBox.Close)
         self.setWindowTitle(title)
         
@@ -98,16 +98,16 @@
         if self.__isUndo:
             res = E5MessageBox.yesNo(
                 None,
-                self.trUtf8("Undo refactorings"),
-                self.trUtf8("""Shall all refactorings up to <b>{0}</b>"""
-                            """ be undone?""")
+                self.tr("Undo refactorings"),
+                self.tr("""Shall all refactorings up to <b>{0}</b>"""
+                        """ be undone?""")
                 .format(Utilities.html_encode(str(change))))
         else:
             res = E5MessageBox.yesNo(
                 None,
-                self.trUtf8("Redo refactorings"),
-                self.trUtf8("""Shall all refactorings up to <b>{0}</b>"""
-                            """ be redone?""")
+                self.tr("Redo refactorings"),
+                self.tr("""Shall all refactorings up to <b>{0}</b>"""
+                        """ be redone?""")
                 .format(Utilities.html_encode(str(change))))
         if res:
             if not self.__refactoring.confirmAllBuffersSaved():

eric ide

mercurial