diff -r ffeb85cdc72d -r 441956d8fce5 PluginManager/PluginExceptions.py --- a/PluginManager/PluginExceptions.py Sun Jun 29 14:00:30 2014 +0200 +++ b/PluginManager/PluginExceptions.py Sun Jun 29 20:13:56 2014 +0200 @@ -9,7 +9,7 @@ from __future__ import unicode_literals -from PyQt4.QtGui import QApplication +from PyQt5.QtCore import QCoreApplication class PluginError(Exception): @@ -20,8 +20,8 @@ """ Constructor """ - self._errorMessage = \ - QApplication.translate("PluginError", "Unspecific plugin error.") + self._errorMessage = QCoreApplication.translate( + "PluginError", "Unspecific plugin error.") def __repr__(self): """ @@ -54,7 +54,7 @@ if msg: self._errorMessage = msg else: - self._errorMessage = QApplication.translate( + self._errorMessage = QCoreApplication.translate( "PluginError", "Plugin paths not found or not creatable.") @@ -67,8 +67,8 @@ """ Constructor """ - self._errorMessage = \ - QApplication.translate("PluginError", "No plugin modules found.") + self._errorMessage = QCoreApplication.translate( + "PluginError", "No plugin modules found.") class PluginLoadError(PluginError): @@ -83,7 +83,7 @@ @param name name of the plugin module (string) """ self._errorMessage = \ - QApplication.translate( + QCoreApplication.translate( "PluginError", "Error loading plugin module: {0}")\ .format(name) @@ -101,7 +101,7 @@ @param name name of the plugin module (string) """ self._errorMessage = \ - QApplication.translate( + QCoreApplication.translate( "PluginError", "Error activating plugin module: {0}")\ .format(name) @@ -119,7 +119,7 @@ @param missing description of the missing element (string) """ self._errorMessage = \ - QApplication.translate( + QCoreApplication.translate( "PluginError", "The plugin module {0} is missing {1}.")\ .format(name, missing) @@ -139,7 +139,7 @@ @param missing description of the missing element (string) """ self._errorMessage = \ - QApplication.translate( + QCoreApplication.translate( "PluginError", "The plugin class {0} of module {1} is missing {2}.")\ .format(class_, name, missing) @@ -157,7 +157,7 @@ @param name name of the plugin module (string) """ self._errorMessage = \ - QApplication.translate( + QCoreApplication.translate( "PluginError", "The plugin module {0} is not compatible with Python2.")\ .format(name)