src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Imports/translations.py

branch
eric7
changeset 10046
35b27af462ef
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10045:f5c57f8d17a4 10046:35b27af462ef
20 ), 20 ),
21 "I103": QCoreApplication.translate( 21 "I103": QCoreApplication.translate(
22 "ImportsChecker", 22 "ImportsChecker",
23 "packages from standard modules should not be imported locally", 23 "packages from standard modules should not be imported locally",
24 ), 24 ),
25 "I201": QCoreApplication.translate(
26 "ImportsChecker",
27 "Import statements are in the wrong order. '{0}' should be before '{1}'",
28 ),
29 "I202": QCoreApplication.translate(
30 "ImportsChecker", "Imported names are in the wrong order. Should be '{0}'"
31 ),
32 "I203": QCoreApplication.translate(
33 "ImportsChecker",
34 "Import statements should be combined. '{0}' should be combined with '{1}'",
35 ),
36 "I204": QCoreApplication.translate(
37 "ImportsChecker",
38 "The names in __all__ are in the wrong order. The order should be '{0}'",
39 ),
40 "I901": QCoreApplication.translate( 25 "I901": QCoreApplication.translate(
41 "ImportsChecker", "unnecessary import alias - rewrite as '{0}'" 26 "ImportsChecker", "unnecessary import alias - rewrite as '{0}'"
42 ), 27 ),
43 "I902": QCoreApplication.translate("ImportsChecker", "banned import '{0}' used"), 28 "I902": QCoreApplication.translate("ImportsChecker", "banned import '{0}' used"),
44 "I903": QCoreApplication.translate( 29 "I903": QCoreApplication.translate(
46 ), 31 ),
47 "I904": QCoreApplication.translate("ImportsChecker", "relative imports are banned"), 32 "I904": QCoreApplication.translate("ImportsChecker", "relative imports are banned"),
48 } 33 }
49 34
50 _importsMessagesSampleArgs = { 35 _importsMessagesSampleArgs = {
51 "I201": ["import bar", "import foo"],
52 "I202": ["bar, baz, foo"],
53 "I203": ["from foo import bar", "from foo import baz"],
54 "I204": ["bar, baz, foo"],
55 "I901": ["from foo import bar"], 36 "I901": ["from foo import bar"],
56 "I902": ["foo"], 37 "I902": ["foo"],
57 } 38 }

eric ide

mercurial