7 Module implementing message translations for the code style plugin messages. |
7 Module implementing message translations for the code style plugin messages. |
8 """ |
8 """ |
9 |
9 |
10 |
10 |
11 from PyQt5.QtCore import QCoreApplication |
11 from PyQt5.QtCore import QCoreApplication |
12 |
|
13 from Globals import translate |
|
14 |
12 |
15 from .Security.translations import ( |
13 from .Security.translations import ( |
16 _securityMessages, _securityMessagesSampleArgs |
14 _securityMessages, _securityMessagesSampleArgs |
17 ) |
15 ) |
18 |
16 |
947 "Extraneous whitespace removed."), |
945 "Extraneous whitespace removed."), |
948 "FIXE261": QCoreApplication.translate( |
946 "FIXE261": QCoreApplication.translate( |
949 'CodeStyleFixer', |
947 'CodeStyleFixer', |
950 "Whitespace around comment sign corrected."), |
948 "Whitespace around comment sign corrected."), |
951 |
949 |
952 "FIXE302+": lambda n=1: translate( |
950 "FIXE302+": lambda n=1: QCoreApplication.translate( |
953 'CodeStyleFixer', |
951 'CodeStyleFixer', |
954 "%n blank line(s) inserted.", '', n), |
952 "%n blank line(s) inserted.", '', n), |
955 "FIXE302-": lambda n=1: translate( |
953 "FIXE302-": lambda n=1: QCoreApplication.translate( |
956 'CodeStyleFixer', |
954 'CodeStyleFixer', |
957 "%n superfluous lines removed", '', n), |
955 "%n superfluous lines removed", '', n), |
958 |
956 |
959 "FIXE303": QCoreApplication.translate( |
957 "FIXE303": QCoreApplication.translate( |
960 'CodeStyleFixer', |
958 'CodeStyleFixer', |