Plugins/CheckerPlugins/Pep8/Pep8Checker.py

changeset 1180
566742748d48
parent 945
8cd4d08fa9f6
child 1339
913182fdc3dd
--- a/Plugins/CheckerPlugins/Pep8/Pep8Checker.py	Sun Jul 17 18:10:54 2011 +0200
+++ b/Plugins/CheckerPlugins/Pep8/Pep8Checker.py	Sun Jul 17 11:22:05 2011 +0200
@@ -10,7 +10,7 @@
 import os
 import optparse
 
-from PyQt4.QtCore import QProcess
+from PyQt4.QtCore import QProcess, QCoreApplication
 
 from . import pep8
 
@@ -139,7 +139,8 @@
         interpreter = Preferences.getDebugger("PythonInterpreter")
         if interpreter == "" or not Utilities.isExecutable(interpreter):
             self.messages.append(filename, "1", "1",
-                self.trUtf8("Python2 interpreter not configured."))
+                QCoreApplication.translate("Pep8Py2Checker",
+                    "Python2 interpreter not configured."))
             return
         
         checker = os.path.join(getConfig('ericDir'),
@@ -199,4 +200,5 @@
                 index += 1
         else:
             self.messages.append(filename, "1", "1",
-                self.trUtf8("Python2 interpreter did not finish within 15s."))
+                QCoreApplication.translate("Pep8Py2Checker",
+                    "Python2 interpreter did not finish within 15s."))

eric ide

mercurial