PluginPyLint.py

branch
eric7
changeset 105
ab6d2ee7171e
parent 102
e40ecfd9ec37
child 107
3bd2806a6ada
equal deleted inserted replaced
104:c43be9065033 105:ab6d2ee7171e
28 # Start-of-Header 28 # Start-of-Header
29 name = "PyLint Plugin" 29 name = "PyLint Plugin"
30 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 30 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
31 autoactivate = True 31 autoactivate = True
32 deactivateable = True 32 deactivateable = True
33 version = "10.0.0" 33 version = "10.0.1"
34 className = "PyLintPlugin" 34 className = "PyLintPlugin"
35 packageName = "PyLintInterface" 35 packageName = "PyLintInterface"
36 shortDescription = "Show the PyLint dialogs." 36 shortDescription = "Show the PyLint dialogs."
37 longDescription = ( 37 longDescription = (
38 """This plug-in implements the PyLint dialogs. PyLint is used to check""" 38 """This plug-in implements the PyLint dialogs. PyLint is used to check"""
423 """ 423 """
424 if self.__ui is not None: 424 if self.__ui is not None:
425 loc = self.__ui.getLocale() 425 loc = self.__ui.getLocale()
426 if loc and loc != "C": 426 if loc and loc != "C":
427 locale_dir = os.path.join(os.path.dirname(__file__), 427 locale_dir = os.path.join(os.path.dirname(__file__),
428 "PyLint", "i18n") 428 "PyLintInterface", "i18n")
429 translation = "pylint_{0}".format(loc) 429 translation = "pylint_{0}".format(loc)
430 translator = QTranslator(None) 430 translator = QTranslator(None)
431 loaded = translator.load(translation, locale_dir) 431 loaded = translator.load(translation, locale_dir)
432 if loaded: 432 if loaded:
433 self.__translator = translator 433 self.__translator = translator

eric ide

mercurial