Plugins/CheckerPlugins/CodeStyleChecker/translations.py

changeset 4828
b313794f46a2
parent 4631
5c1a96925da4
child 5146
f96c32abd120
equal deleted inserted replaced
4739:bbd2cc223fc7 4828:b313794f46a2
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 from PyQt5.QtCore import QCoreApplication 12 from PyQt5.QtCore import QCoreApplication
13 13
14 from Globals import translate
15
14 __all__ = ["getTranslatedMessage"] 16 __all__ = ["getTranslatedMessage"]
15 17
16 _messages = { 18 _messages = {
17 "E101": QCoreApplication.translate( 19 "E101": QCoreApplication.translate(
18 "pep8", 20 "pep8",
24 "pep8", 26 "pep8",
25 "expected an indented block"), 27 "expected an indented block"),
26 "E113": QCoreApplication.translate( 28 "E113": QCoreApplication.translate(
27 "pep8", 29 "pep8",
28 "unexpected indentation"), 30 "unexpected indentation"),
31 "E114": QCoreApplication.translate(
32 "pep8",
33 "indentation is not a multiple of four (comment)"),
34 "E115": QCoreApplication.translate(
35 "pep8",
36 "expected an indented block (comment)"),
37 "E116": QCoreApplication.translate(
38 "pep8",
39 "unexpected indentation (comment)"),
29 "E121": QCoreApplication.translate( 40 "E121": QCoreApplication.translate(
30 "pep8", 41 "pep8",
31 "continuation line indentation is not a multiple of four"), 42 "continuation line indentation is not a multiple of four"),
32 "E122": QCoreApplication.translate( 43 "E122": QCoreApplication.translate(
33 "pep8", 44 "pep8",
118 "pep8", 129 "pep8",
119 "inline comment should start with '# '"), 130 "inline comment should start with '# '"),
120 "E265": QCoreApplication.translate( 131 "E265": QCoreApplication.translate(
121 "pep8", 132 "pep8",
122 "block comment should start with '# '"), 133 "block comment should start with '# '"),
134 "E266": QCoreApplication.translate(
135 "pep8",
136 "too many leading '#' for block comment"),
123 "E271": QCoreApplication.translate( 137 "E271": QCoreApplication.translate(
124 "pep8", 138 "pep8",
125 "multiple spaces after keyword"), 139 "multiple spaces after keyword"),
126 "E272": QCoreApplication.translate( 140 "E272": QCoreApplication.translate(
127 "pep8", 141 "pep8",
157 "pep8", 171 "pep8",
158 "blank line at end of file"), 172 "blank line at end of file"),
159 "E401": QCoreApplication.translate( 173 "E401": QCoreApplication.translate(
160 "pep8", 174 "pep8",
161 "multiple imports on one line"), 175 "multiple imports on one line"),
176 "E402": QCoreApplication.translate(
177 "pep8",
178 "module level import not at top of file"),
162 "E501": QCoreApplication.translate( 179 "E501": QCoreApplication.translate(
163 "pep8", 180 "pep8",
164 "line too long ({0} > {1} characters)"), 181 "line too long ({0} > {1} characters)"),
165 "E502": QCoreApplication.translate( 182 "E502": QCoreApplication.translate(
166 "pep8", 183 "pep8",
167 "the backslash is redundant between brackets"), 184 "the backslash is redundant between brackets"),
185 "W503": QCoreApplication.translate(
186 "pep8",
187 "line break before binary operator"),
168 "W601": QCoreApplication.translate( 188 "W601": QCoreApplication.translate(
169 "pep8", 189 "pep8",
170 ".has_key() is deprecated, use 'in'"), 190 ".has_key() is deprecated, use 'in'"),
171 "W602": QCoreApplication.translate( 191 "W602": QCoreApplication.translate(
172 "pep8", 192 "pep8",
184 "pep8", 204 "pep8",
185 "multiple statements on one line (semicolon)"), 205 "multiple statements on one line (semicolon)"),
186 "E703": QCoreApplication.translate( 206 "E703": QCoreApplication.translate(
187 "pep8", 207 "pep8",
188 "statement ends with a semicolon"), 208 "statement ends with a semicolon"),
209 "E704": QCoreApplication.translate(
210 "pep8",
211 "multiple statements on one line (def)"),
189 "E711": QCoreApplication.translate( 212 "E711": QCoreApplication.translate(
190 "pep8", 213 "pep8",
191 "comparison to {0} should be {1}"), 214 "comparison to {0} should be {1}"),
192 "E712": QCoreApplication.translate( 215 "E712": QCoreApplication.translate(
193 "pep8", 216 "pep8",
199 "pep8", 222 "pep8",
200 "test for object identity should be 'is not'"), 223 "test for object identity should be 'is not'"),
201 "E721": QCoreApplication.translate( 224 "E721": QCoreApplication.translate(
202 "pep8", 225 "pep8",
203 "do not compare types, use 'isinstance()'"), 226 "do not compare types, use 'isinstance()'"),
227 "E731": QCoreApplication.translate(
228 "pep8",
229 "do not assign a lambda expression, use a def"),
204 "E901": QCoreApplication.translate( 230 "E901": QCoreApplication.translate(
205 "pep8", 231 "pep8",
206 "{0}: {1}"), 232 "{0}: {1}"),
207 "E902": QCoreApplication.translate( 233 "E902": QCoreApplication.translate(
208 "pep8", 234 "pep8",
538 "Whitespace around comment sign corrected."), 564 "Whitespace around comment sign corrected."),
539 "FE301": QCoreApplication.translate( 565 "FE301": QCoreApplication.translate(
540 'CodeStyleFixer', 566 'CodeStyleFixer',
541 "One blank line inserted."), 567 "One blank line inserted."),
542 568
543 "FE302+": lambda n=1: QCoreApplication.translate( 569 "FE302+": lambda n=1: translate(
544 'CodeStyleFixer', 570 'CodeStyleFixer',
545 "%n blank line(s) inserted.", '', n), 571 "%n blank line(s) inserted.", '', n),
546 "FE302-": lambda n=1: QCoreApplication.translate( 572 "FE302-": lambda n=1: translate(
547 'CodeStyleFixer', 573 'CodeStyleFixer',
548 "%n superfluous lines removed", '', n), 574 "%n superfluous lines removed", '', n),
549 575
550 "FE303": QCoreApplication.translate( 576 "FE303": QCoreApplication.translate(
551 'CodeStyleFixer', 577 'CodeStyleFixer',

eric ide

mercurial