Plugins/CheckerPlugins/Pep8/Pep8Checker.py

branch
5_1_x
changeset 1178
2d22b5ce9384
parent 847
cc18fbcde9fc
child 1340
142ad6decc3a
--- a/Plugins/CheckerPlugins/Pep8/Pep8Checker.py	Sat Jul 16 15:02:06 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
 
@@ -138,7 +138,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'), 
@@ -198,4 +199,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