Project/ProjectTranslationsBrowser.py

changeset 4249
ec015f3b8fdb
parent 4021
195a471c327b
child 4284
d61eba7a3b58
--- a/Project/ProjectTranslationsBrowser.py	Mon May 04 19:42:53 2015 +0200
+++ b/Project/ProjectTranslationsBrowser.py	Sat May 09 13:41:45 2015 +0200
@@ -18,7 +18,7 @@
 import shutil
 import fnmatch
 
-from PyQt5.QtCore import pyqtSignal, QProcess
+from PyQt5.QtCore import PYQT_VERSION, pyqtSignal, QProcess
 from PyQt5.QtWidgets import QDialog, QMenu
 
 from E5Gui import E5MessageBox
@@ -1035,10 +1035,17 @@
             self.pylupdate = 'pylupdate4'
             if Utilities.isWindowsPlatform():
                 self.pylupdate = self.pylupdate + '.exe'
-        elif self.project.getProjectType() in ["PyQt5", "PyQt5C", "E6Plugin"]:
+        elif self.project.getProjectType() in ["PyQt5", "PyQt5C"]:
             self.pylupdate = 'pylupdate5'
             if Utilities.isWindowsPlatform():
                 self.pylupdate = self.pylupdate + '.exe'
+        elif self.project.getProjectType() in ["E6Plugin"]:
+            if PYQT_VERSION < 0x050000:
+                self.pylupdate = 'pylupdate4'
+            else:
+                self.pylupdate = 'pylupdate5'
+            if Utilities.isWindowsPlatform():
+                self.pylupdate = self.pylupdate + '.exe'
         elif self.project.getProjectType() in ["PySide", "PySideC"]:
             self.pylupdate = Utilities.generatePySideToolPath('pyside-lupdate')
         else:

eric ide

mercurial