Helpviewer/QtHelpDocumentationDialog.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3217
87b8a0745edd
child 3656
441956d8fce5
diff -r 96232974dcdb -r 645c12de6b0c Helpviewer/QtHelpDocumentationDialog.py
--- a/Helpviewer/QtHelpDocumentationDialog.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Helpviewer/QtHelpDocumentationDialog.py	Thu Apr 03 23:05:31 2014 +0200
@@ -59,9 +59,9 @@
         """
         fileNames = E5FileDialog.getOpenFileNames(
             self,
-            self.trUtf8("Add Documentation"),
+            self.tr("Add Documentation"),
             "",
-            self.trUtf8("Qt Compressed Help Files (*.qch)"))
+            self.tr("Qt Compressed Help Files (*.qch)"))
         if not fileNames:
             return
         
@@ -70,8 +70,8 @@
             if not ns:
                 E5MessageBox.warning(
                     self,
-                    self.trUtf8("Add Documentation"),
-                    self.trUtf8(
+                    self.tr("Add Documentation"),
+                    self.tr(
                         """The file <b>{0}</b> is not a valid"""
                         """ Qt Help File.""").format(fileName)
                 )
@@ -80,8 +80,8 @@
             if len(self.documentsList.findItems(ns, Qt.MatchFixedString)):
                 E5MessageBox.warning(
                     self,
-                    self.trUtf8("Add Documentation"),
-                    self.trUtf8(
+                    self.tr("Add Documentation"),
+                    self.tr(
                         """The namespace <b>{0}</b> is already registered.""")
                     .format(ns)
                 )
@@ -98,10 +98,10 @@
         """
         Private slot to remove a document from the help database.
         """
-        res = E5MessageBox.question(
+        res = E5MessageBox.yesNo(
             self,
-            self.trUtf8("Remove Documentation"),
-            self.trUtf8(
+            self.tr("Remove Documentation"),
+            self.tr(
                 """Do you really want to remove the selected documentation """
                 """sets from the database?"""))
         if not res:
@@ -115,8 +115,8 @@
             if ns in list(openedDocs.values()):
                 res = E5MessageBox.yesNo(
                     self,
-                    self.trUtf8("Remove Documentation"),
-                    self.trUtf8(
+                    self.tr("Remove Documentation"),
+                    self.tr(
                         """Some documents currently opened reference the """
                         """documentation you are attempting to remove. """
                         """Removing the documentation will close those """

eric ide

mercurial