eric7/Project/ProjectTranslationsBrowser.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8336
d566c2970f39
child 8358
144a6b854f70
--- a/eric7/Project/ProjectTranslationsBrowser.py	Sat May 22 17:01:51 2021 +0200
+++ b/eric7/Project/ProjectTranslationsBrowser.py	Sat May 22 18:51:46 2021 +0200
@@ -17,8 +17,8 @@
 from PyQt6.QtCore import pyqtSignal, QProcess
 from PyQt6.QtWidgets import QDialog, QMenu
 
-from E5Gui import E5MessageBox
-from E5Gui.E5Application import e5App
+from E5Gui import EricMessageBox
+from E5Gui.EricApplication import ericApp
 
 from .ProjectBrowserModel import (
     ProjectBrowserFileItem, ProjectBrowserSimpleDirectoryItem,
@@ -788,7 +788,7 @@
             except IndexError:
                 langs = []
         if not langs:
-            E5MessageBox.warning(
+            EricMessageBox.warning(
                 self,
                 self.tr("Write temporary project file"),
                 self.tr("""No translation files (*.ts) selected."""))
@@ -830,7 +830,7 @@
                 
                 self.__tmpProjects.append(outFile)
             except OSError:
-                E5MessageBox.critical(
+                EricMessageBox.critical(
                     self,
                     self.tr("Write temporary project file"),
                     self.tr(
@@ -936,7 +936,7 @@
         @param exitStatus exit status of the process
         @type QProcess.ExitStatus
         """
-        ui = e5App().getObject("UserInterface")
+        ui = ericApp().getObject("UserInterface")
         if exitStatus == QProcess.ExitStatus.NormalExit and exitCode == 0:
             ui.showNotification(
                 UI.PixmapCache.getPixmap("linguist48"),
@@ -1051,7 +1051,7 @@
                 except IndexError:
                     langs = []
             if not langs:
-                E5MessageBox.warning(
+                EricMessageBox.warning(
                     self,
                     self.tr("Translation file generation"),
                     self.tr("""No translation files (*.ts) selected."""))
@@ -1083,7 +1083,7 @@
                     self.pylupdateProcRunning = True
                     self.__pylupdateProcesses.append((proc, ""))
                 else:
-                    E5MessageBox.critical(
+                    EricMessageBox.critical(
                         self,
                         self.tr('Process Generation Error'),
                         self.tr(
@@ -1119,7 +1119,7 @@
                     self.pylupdateProcRunning = True
                     self.__pylupdateProcesses.append((proc, tempProjectFile))
                 else:
-                    E5MessageBox.critical(
+                    EricMessageBox.critical(
                         self,
                         self.tr('Process Generation Error'),
                         self.tr(
@@ -1180,7 +1180,7 @@
         @param exitStatus exit status of the process
         @type QProcess.ExitStatus
         """
-        ui = e5App().getObject("UserInterface")
+        ui = ericApp().getObject("UserInterface")
         if exitStatus == QProcess.ExitStatus.NormalExit and exitCode == 0:
             ui.showNotification(
                 UI.PixmapCache.getPixmap("linguist48"),
@@ -1260,7 +1260,7 @@
             except IndexError:
                 langs = []
         if not langs:
-            E5MessageBox.warning(
+            EricMessageBox.warning(
                 self,
                 self.tr("Write temporary project file"),
                 self.tr("""No translation files (*.ts) selected."""))
@@ -1291,7 +1291,7 @@
             self.lreleaseProcRunning = True
             self.__lreleaseProcesses.append(proc)
         else:
-            E5MessageBox.critical(
+            EricMessageBox.critical(
                 self,
                 self.tr('Process Generation Error'),
                 self.tr(

eric ide

mercurial