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

branch
eric7
changeset 11150
73d80859079c
parent 11090
f5f5f5803935
equal deleted inserted replaced
11149:fc45672fae42 11150:73d80859079c
9 """ 9 """
10 10
11 from PyQt6.QtCore import QCoreApplication 11 from PyQt6.QtCore import QCoreApplication
12 12
13 _nameOrderMessages = { 13 _nameOrderMessages = {
14 "NO101": QCoreApplication.translate( 14 "NO-101": QCoreApplication.translate(
15 "NameOrderChecker", 15 "NameOrderChecker",
16 "Import statements are in the wrong order. '{0}' should be before '{1}'", 16 "Import statements are in the wrong order. '{0}' should be before '{1}'",
17 ), 17 ),
18 "NO102": QCoreApplication.translate( 18 "NO-102": QCoreApplication.translate(
19 "NameOrderChecker", "Imported names are in the wrong order. Should be '{0}'" 19 "NameOrderChecker", "Imported names are in the wrong order. Should be '{0}'"
20 ), 20 ),
21 "NO103": QCoreApplication.translate( 21 "NO-103": QCoreApplication.translate(
22 "NameOrderChecker", 22 "NameOrderChecker",
23 "Import statements should be combined. '{0}' should be combined with '{1}'", 23 "Import statements should be combined. '{0}' should be combined with '{1}'",
24 ), 24 ),
25 "NO104": QCoreApplication.translate( 25 "NO-104": QCoreApplication.translate(
26 "NameOrderChecker", 26 "NameOrderChecker",
27 "The names in __all__ are in the wrong order. The order should be '{0}'", 27 "The names in __all__ are in the wrong order. The order should be '{0}'",
28 ), 28 ),
29 "NO105": QCoreApplication.translate( 29 "NO-105": QCoreApplication.translate(
30 "NameOrderChecker", 30 "NameOrderChecker",
31 "The names in the exception handler list are in the wrong order. The order" 31 "The names in the exception handler list are in the wrong order. The order"
32 " should be '{0}'", 32 " should be '{0}'",
33 ), 33 ),
34 } 34 }
35 35
36 _nameOrderMessagesSampleArgs = { 36 _nameOrderMessagesSampleArgs = {
37 "NO101": ["import bar", "import foo"], 37 "NO-101": ["import bar", "import foo"],
38 "NO102": ["bar, baz, foo"], 38 "NO-102": ["bar, baz, foo"],
39 "NO103": ["from foo import bar", "from foo import baz"], 39 "NO-103": ["from foo import bar", "from foo import baz"],
40 "NO104": ["bar, baz, foo"], 40 "NO-104": ["bar, baz, foo"],
41 "NO105": ["BarError, BazError, FooError"], 41 "NO-105": ["BarError, BazError, FooError"],
42 } 42 }

eric ide

mercurial