Helpviewer/SiteInfo/SiteInfoDialog.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
--- a/Helpviewer/SiteInfo/SiteInfoDialog.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Helpviewer/SiteInfo/SiteInfoDialog.py	Thu Apr 03 23:05:31 2014 +0200
@@ -147,7 +147,7 @@
         
         if counter == 0:
             itm = QListWidgetItem(self.databasesList)
-            itm.setText(self.trUtf8("No databases are used by this page."))
+            itm.setText(self.tr("No databases are used by this page."))
             itm.setFlags(itm.flags() & Qt.ItemIsSelectable)
     
     @pyqtSlot()
@@ -190,7 +190,7 @@
             if pixmap.isNull():
                 invalidPixmap = True
         if invalidPixmap:
-            scene.addText(self.trUtf8("Preview not available."))
+            scene.addText(self.tr("Preview not available."))
         else:
             scene.addPixmap(pixmap)
         self.imagePreview.setScene(scene)
@@ -207,15 +207,15 @@
         
         menu = QMenu()
         act = menu.addAction(
-            self.trUtf8("Copy Image Location to Clipboard"),
+            self.tr("Copy Image Location to Clipboard"),
             self.__copyAction)
         act.setData(itm.text(1))
         act = menu.addAction(
-            self.trUtf8("Copy Image Name to Clipboard"),
+            self.tr("Copy Image Name to Clipboard"),
             self.__copyAction)
         act.setData(itm.text(0))
         menu.addSeparator()
-        act = menu.addAction(self.trUtf8("Save Image"), self.__saveImage)
+        act = menu.addAction(self.tr("Save Image"), self.__saveImage)
         act.setData(self.imagesTree.indexOfTopLevelItem(itm))
         menu.exec_(QCursor.pos())
     
@@ -250,8 +250,8 @@
         if not cacheData:
             E5MessageBox.critical(
                 self,
-                self.trUtf8("Save Image"),
-                self.trUtf8("""This image is not available."""))
+                self.tr("Save Image"),
+                self.tr("""This image is not available."""))
             return
         
         downloadDirectory = Helpviewer.HelpWindow.HelpWindow\
@@ -259,9 +259,9 @@
         fn = os.path.join(downloadDirectory, os.path.basename(itm.text(1)))
         filename = E5FileDialog.getSaveFileName(
             self,
-            self.trUtf8("Save Image"),
+            self.tr("Save Image"),
             fn,
-            self.trUtf8("All Files (*)"),
+            self.tr("All Files (*)"),
             E5FileDialog.Options(E5FileDialog.DontConfirmOverwrite))
         
         if not filename:
@@ -271,8 +271,8 @@
         if not f.open(QFile.WriteOnly):
             E5MessageBox.critical(
                 self,
-                self.trUtf8("Save Image"),
-                self.trUtf8(
+                self.tr("Save Image"),
+                self.tr(
                     """<p>Cannot write to file <b>{0}</b>.</p>""")
                 .format(filename))
             return

eric ide

mercurial