Plugins/CheckerPlugins/CodeStyleChecker/translations.py

changeset 4506
57666e501a42
parent 4423
14f3ca3dcef6
child 4507
1a5bc1ac7c2e
diff -r 3b437ae320bd -r 57666e501a42 Plugins/CheckerPlugins/CodeStyleChecker/translations.py
--- a/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Fri Oct 23 19:44:22 2015 +0200
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Sat Oct 24 20:36:26 2015 +0200
@@ -377,6 +377,33 @@
     "C901": QCoreApplication.translate(
         "McCabeChecker", "{0}: {1}"),
     
+    # Messages of the Miscellaneous Checker
+    # TODO: Do this right
+    "M101": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "coding magic comment not found"),
+    "M102": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "unknown encoding ({0}) found in coding magic comment"),
+    "M111": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "copyright notice not present"),
+    "M112": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "copyright notice contains invalid author"),
+    "M121": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "blind except: statement"),
+    "M131": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "found {0} formatter"),
+    "M801": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "print statement found"),
+    "M901": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "{0}: {1}"),
+    
     # CodeStyleFixer messages
     "FD111": QCoreApplication.translate(
         'CodeStyleFixer',
@@ -547,6 +574,11 @@
     "E902": ["IOError"],
     "D232": ["public"],
     "D901": ["SyntaxError", "Invalid Syntax"],
+    "C101": ["foo.bar", "42"],
+    "C901": ["SyntaxError", "Invalid Syntax"],
+    "M102": ["enc42"],
+    "M131": ["%s"],
+    "M901": ["SyntaxError", "Invalid Syntax"],
     "FWRITE_ERROR": ["IOError"],
 }
 

eric ide

mercurial