Tue, 25 May 2021 19:36:03 +0200
Ported the plug-in to PyQt6 for eric7.
--- a/.hgignore Tue May 25 19:30:18 2021 +0200 +++ b/.hgignore Tue May 25 19:36:03 2021 +0200 @@ -1,9 +1,5 @@ glob:.eric6project -glob:_eric6project -glob:.eric5project -glob:_eric5project -glob:.eric4project -glob:_eric4project +glob:.eric7project glob:.ropeproject glob:_ropeproject glob:.directory
--- a/ChangeLog Tue May 25 19:30:18 2021 +0200 +++ b/ChangeLog Tue May 25 19:36:03 2021 +0200 @@ -1,5 +1,10 @@ ChangeLog --------- +Version 1.0.0: +- first release of the eric7 variant + +************************************************************ + Version 5.0.0: - removed the included 'vulture' library and have it as an external dependency installed during the plug-in installation (for eric > 21.5)
--- a/PluginCheckerVulture.e4p Tue May 25 19:30:18 2021 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,523 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE Project SYSTEM "Project-5.1.dtd"> -<!-- eric project file for project PluginCheckerVulture --> -<!-- Copyright (C) 2020 Detlev Offenbach, detlev@die-offenbachs.de --> -<Project version="5.1"> - <Language>en_US</Language> - <Hash>ba39fb6c6b6bbf35870f5dac20e42e8e562ca22b</Hash> - <ProgLanguage mixed="0">Python3</ProgLanguage> - <ProjectType>E6Plugin</ProjectType> - <Description>Plug-in to detect unused code using the vulture library.</Description> - <Version>0.x</Version> - <Author>Detlev Offenbach</Author> - <Email>detlev@die-offenbachs.de</Email> - <TranslationPattern>VultureChecker/i18n/vulture_%language%.ts</TranslationPattern> - <Eol index="1"/> - <Sources> - <Source>PluginVulture.py</Source> - <Source>VultureChecker/EditWhiteListDialog.py</Source> - <Source>VultureChecker/VultureCheckerDialog.py</Source> - <Source>VultureChecker/VultureCheckerService.py</Source> - <Source>VultureChecker/__init__.py</Source> - <Source>VultureChecker/vulture/__init__.py</Source> - <Source>VultureChecker/vulture/__main__.py</Source> - <Source>VultureChecker/vulture/core.py</Source> - <Source>VultureChecker/vulture/lines.py</Source> - <Source>VultureChecker/vulture/utils.py</Source> - <Source>VultureChecker/vulture/whitelists/argparse_whitelist.py</Source> - <Source>VultureChecker/vulture/whitelists/ast_whitelist.py</Source> - <Source>VultureChecker/vulture/whitelists/collections_whitelist.py</Source> - <Source>VultureChecker/vulture/whitelists/sys_whitelist.py</Source> - <Source>VultureChecker/vulture/whitelists/threading_whitelist.py</Source> - <Source>VultureChecker/vulture/whitelists/unittest_whitelist.py</Source> - <Source>VultureChecker/vulture/whitelists/whitelist_utils.py</Source> - <Source>__init__.py</Source> - </Sources> - <Forms> - <Form>VultureChecker/EditWhiteListDialog.ui</Form> - <Form>VultureChecker/VultureCheckerDialog.ui</Form> - </Forms> - <Translations> - <Translation>VultureChecker/i18n/vulture_de.qm</Translation> - <Translation>VultureChecker/i18n/vulture_de.ts</Translation> - <Translation>VultureChecker/i18n/vulture_en.qm</Translation> - <Translation>VultureChecker/i18n/vulture_en.ts</Translation> - <Translation>VultureChecker/i18n/vulture_es.qm</Translation> - <Translation>VultureChecker/i18n/vulture_es.ts</Translation> - <Translation>VultureChecker/i18n/vulture_ru.qm</Translation> - <Translation>VultureChecker/i18n/vulture_ru.ts</Translation> - </Translations> - <Others> - <Other>.hgignore</Other> - <Other>ChangeLog</Other> - <Other>PKGLIST</Other> - <Other>PluginCheckerVulture.e4p</Other> - <Other>PluginVulture.zip</Other> - <Other>VultureChecker/Documentation/LICENSE.GPL3</Other> - <Other>VultureChecker/Documentation/source</Other> - </Others> - <MainScript>PluginVulture.py</MainScript> - <Vcs> - <VcsType>Mercurial</VcsType> - <VcsOptions> - <dict> - <key> - <string>add</string> - </key> - <value> - <list> - <string></string> - </list> - </value> - <key> - <string>checkout</string> - </key> - <value> - <list> - <string></string> - </list> - </value> - <key> - <string>commit</string> - </key> - <value> - <list> - <string></string> - </list> - </value> - <key> - <string>diff</string> - </key> - <value> - <list> - <string></string> - </list> - </value> - <key> - <string>export</string> - </key> - <value> - <list> - <string></string> - </list> - </value> - <key> - <string>global</string> - </key> - <value> - <list> - <string></string> - </list> - </value> - <key> - <string>history</string> - </key> - <value> - <list> - <string></string> - </list> - </value> - <key> - <string>log</string> - </key> - <value> - <list> - <string></string> - </list> - </value> - <key> - <string>remove</string> - </key> - <value> - <list> - <string></string> - </list> - </value> - <key> - <string>status</string> - </key> - <value> - <list> - <string></string> - </list> - </value> - <key> - <string>tag</string> - </key> - <value> - <list> - <string></string> - </list> - </value> - <key> - <string>update</string> - </key> - <value> - <list> - <string></string> - </list> - </value> - </dict> - </VcsOptions> - </Vcs> - <FiletypeAssociations> - <FiletypeAssociation pattern="*.idl" type="INTERFACES"/> - <FiletypeAssociation pattern="*.py" type="SOURCES"/> - <FiletypeAssociation pattern="*.py3" type="SOURCES"/> - <FiletypeAssociation pattern="*.pyw" type="SOURCES"/> - <FiletypeAssociation pattern="*.pyw3" type="SOURCES"/> - <FiletypeAssociation pattern="*.qm" type="TRANSLATIONS"/> - <FiletypeAssociation pattern="*.qrc" type="RESOURCES"/> - <FiletypeAssociation pattern="*.ts" type="TRANSLATIONS"/> - <FiletypeAssociation pattern="*.ui" type="FORMS"/> - <FiletypeAssociation pattern="Ui_*.py" type="__IGNORE__"/> - </FiletypeAssociations> - <Documentation> - <DocumentationParams> - <dict> - <key> - <string>ERIC4DOC</string> - </key> - <value> - <dict> - <key> - <string>cssFile</string> - </key> - <value> - <string>%PYTHON%/eric6/CSSs/default.css</string> - </value> - <key> - <string>ignoreDirectories</string> - </key> - <value> - <list> - <string>.hg</string> - <string>.ropeproject</string> - <string>_ropeproject</string> - <string>.eric6project</string> - <string>_eric6project</string> - <string>vulture</string> - </list> - </value> - <key> - <string>ignoreFilePatterns</string> - </key> - <value> - <list> - <string>Ui_*.py</string> - </list> - </value> - <key> - <string>outputDirectory</string> - </key> - <value> - <string>VultureChecker/Documentation/source</string> - </value> - <key> - <string>qtHelpEnabled</string> - </key> - <value> - <bool>False</bool> - </value> - <key> - <string>useRecursion</string> - </key> - <value> - <bool>True</bool> - </value> - </dict> - </value> - </dict> - </DocumentationParams> - </Documentation> - <Checkers> - <CheckersParams> - <dict> - <key> - <string>Pep8Checker</string> - </key> - <value> - <dict> - <key> - <string>AnnotationsChecker</string> - </key> - <value> - <dict> - <key> - <string>MaximumComplexity</string> - </key> - <value> - <int>3</int> - </value> - <key> - <string>MinimumCoverage</string> - </key> - <value> - <int>75</int> - </value> - </dict> - </value> - <key> - <string>BlankLines</string> - </key> - <value> - <tuple> - <int>2</int> - <int>1</int> - </tuple> - </value> - <key> - <string>BuiltinsChecker</string> - </key> - <value> - <dict> - <key> - <string>bytes</string> - </key> - <value> - <list> - <string>unicode</string> - </list> - </value> - <key> - <string>chr</string> - </key> - <value> - <list> - <string>unichr</string> - </list> - </value> - <key> - <string>str</string> - </key> - <value> - <list> - <string>unicode</string> - </list> - </value> - </dict> - </value> - <key> - <string>CommentedCodeChecker</string> - </key> - <value> - <dict> - <key> - <string>Aggressive</string> - </key> - <value> - <bool>False</bool> - </value> - </dict> - </value> - <key> - <string>CopyrightAuthor</string> - </key> - <value> - <string></string> - </value> - <key> - <string>CopyrightMinFileSize</string> - </key> - <value> - <int>0</int> - </value> - <key> - <string>DocstringType</string> - </key> - <value> - <string>eric</string> - </value> - <key> - <string>EnabledCheckerCategories</string> - </key> - <value> - <string>C, D, E, M, N, S, W</string> - </value> - <key> - <string>ExcludeFiles</string> - </key> - <value> - <string>*/Ui_*.py, */*_rc.py, */vulture/*</string> - </value> - <key> - <string>ExcludeMessages</string> - </key> - <value> - <string>C101,E265,E266,E305,E402,M201,M811,N802,N803,N807,N808,N821,W293,W504</string> - </value> - <key> - <string>FixCodes</string> - </key> - <value> - <string></string> - </value> - <key> - <string>FixIssues</string> - </key> - <value> - <bool>False</bool> - </value> - <key> - <string>FutureChecker</string> - </key> - <value> - <string></string> - </value> - <key> - <string>HangClosing</string> - </key> - <value> - <bool>False</bool> - </value> - <key> - <string>IncludeMessages</string> - </key> - <value> - <string></string> - </value> - <key> - <string>LineComplexity</string> - </key> - <value> - <int>20</int> - </value> - <key> - <string>LineComplexityScore</string> - </key> - <value> - <int>10</int> - </value> - <key> - <string>MaxCodeComplexity</string> - </key> - <value> - <int>10</int> - </value> - <key> - <string>MaxDocLineLength</string> - </key> - <value> - <int>79</int> - </value> - <key> - <string>MaxLineLength</string> - </key> - <value> - <int>79</int> - </value> - <key> - <string>NoFixCodes</string> - </key> - <value> - <string>E501</string> - </value> - <key> - <string>RepeatMessages</string> - </key> - <value> - <bool>True</bool> - </value> - <key> - <string>SecurityChecker</string> - </key> - <value> - <dict> - <key> - <string>CheckTypedException</string> - </key> - <value> - <bool>False</bool> - </value> - <key> - <string>HardcodedTmpDirectories</string> - </key> - <value> - <list> - <string>/tmp</string> - <string>/var/tmp</string> - <string>/dev/shm</string> - <string>~/tmp</string> - </list> - </value> - <key> - <string>InsecureHashes</string> - </key> - <value> - <list> - <string>md4</string> - <string>md5</string> - <string>sha</string> - <string>sha1</string> - </list> - </value> - <key> - <string>InsecureSslProtocolVersions</string> - </key> - <value> - <list> - <string>PROTOCOL_SSLv2</string> - <string>SSLv2_METHOD</string> - <string>SSLv23_METHOD</string> - <string>PROTOCOL_SSLv3</string> - <string>PROTOCOL_TLSv1</string> - <string>SSLv3_METHOD</string> - <string>TLSv1_METHOD</string> - </list> - </value> - <key> - <string>WeakKeySizeDsaHigh</string> - </key> - <value> - <string>1024</string> - </value> - <key> - <string>WeakKeySizeDsaMedium</string> - </key> - <value> - <string>2048</string> - </value> - <key> - <string>WeakKeySizeEcHigh</string> - </key> - <value> - <string>160</string> - </value> - <key> - <string>WeakKeySizeEcMedium</string> - </key> - <value> - <string>224</string> - </value> - <key> - <string>WeakKeySizeRsaHigh</string> - </key> - <value> - <string>1024</string> - </value> - <key> - <string>WeakKeySizeRsaMedium</string> - </key> - <value> - <string>2048</string> - </value> - </dict> - </value> - <key> - <string>ShowIgnored</string> - </key> - <value> - <bool>False</bool> - </value> - <key> - <string>ValidEncodings</string> - </key> - <value> - <string>latin-1, utf-8</string> - </value> - </dict> - </value> - </dict> - </CheckersParams> - </Checkers> -</Project>
--- a/PluginCheckerVulture.epj Tue May 25 19:30:18 2021 +0200 +++ b/PluginCheckerVulture.epj Tue May 25 19:36:03 2021 +0200 @@ -130,7 +130,7 @@ "DOCSTRING": "", "DOCUMENTATIONPARMS": { "ERIC4DOC": { - "cssFile": "%PYTHON%/eric6/CSSs/default.css", + "cssFile": "%PYTHON%/eric7/CSSs/default.css", "ignoreDirectories": [ ".hg", ".ropeproject", @@ -150,16 +150,25 @@ "EMAIL": "detlev@die-offenbachs.de", "EOL": 1, "FILETYPES": { + "*.epj": "OTHERS", "*.idl": "INTERFACES", + "*.md": "OTHERS", + "*.proto": "PROTOCOLS", "*.py": "SOURCES", "*.py3": "SOURCES", "*.pyw": "SOURCES", "*.pyw3": "SOURCES", "*.qm": "TRANSLATIONS", - "*.qrc": "RESOURCES", + "*.rst": "OTHERS", "*.ts": "TRANSLATIONS", + "*.txt": "OTHERS", "*.ui": "FORMS", - "Ui_*.py": "__IGNORE__" + "GNUmakefile": "OTHERS", + "Makefile": "OTHERS", + "README": "OTHERS", + "README.*": "OTHERS", + "Ui_*.py": "__IGNORE__", + "makefile": "OTHERS" }, "FORMS": [ "VultureChecker/EditWhiteListDialog.ui", @@ -187,7 +196,6 @@ ".hgignore", "ChangeLog", "PKGLIST", - "PluginCheckerVulture.e4p", "PluginVulture.zip", "VultureChecker/Documentation/LICENSE.GPL3", "VultureChecker/Documentation/source", @@ -196,7 +204,7 @@ "OTHERTOOLSPARMS": {}, "PACKAGERSPARMS": {}, "PROGLANGUAGE": "Python3", - "PROJECTTYPE": "E6Plugin", + "PROJECTTYPE": "E7Plugin", "PROJECTTYPESPECIFICDATA": {}, "PROTOCOLS": [], "RCCPARAMS": { @@ -275,6 +283,6 @@ ] }, "VCSOTHERDATA": {}, - "VERSION": "0.x" + "VERSION": "" } } \ No newline at end of file
--- a/PluginVulture.py Tue May 25 19:30:18 2021 +0200 +++ b/PluginVulture.py Tue May 25 19:36:03 2021 +0200 @@ -9,10 +9,10 @@ import os -from PyQt5.QtCore import pyqtSignal, QObject, QTranslator +from PyQt6.QtCore import pyqtSignal, QObject, QTranslator -from E5Gui.E5Application import e5App -from E5Gui.E5Action import E5Action +from EricWidgets.EricApplication import ericApp +from EricGui.EricAction import EricAction import Preferences from Utilities import determinePythonVersion @@ -22,12 +22,12 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "5.0.0" +version = "1.0.0" className = "VulturePlugin" packageName = "VultureChecker" -shortDescription = "Plug-in to detect unused code using the vulture library" +shortDescription = "Plug-in to detect unused code using the 'vulture' library" longDescription = ( - """Plug-in to detect unused code using the vulture library.""" + """Plug-in to detect unused code using the 'vulture' library.""" ) needsRestart = False pyqtApi = 2 @@ -53,13 +53,14 @@ """ Constructor - @param ui reference to the user interface object (UI.UserInterface) + @param ui reference to the user interface object + @type UserInterface """ super().__init__(ui) self.__ui = ui self.__initialize() - self.backgroundService = e5App().getObject("BackgroundService") + self.backgroundService = ericApp().getObject("BackgroundService") path = os.path.join(os.path.dirname(__file__), packageName) self.backgroundService.serviceConnect( @@ -196,14 +197,15 @@ """ Public method to activate this plug-in. - @return tuple of None and activation status (boolean) + @return tuple of None and activation status + @rtype tuple of (None, bool) """ global error error = "" # clear previous error - menu = e5App().getObject("Project").getMenu("Checks") + menu = ericApp().getObject("Project").getMenu("Checks") if menu: - self.__projectAct = E5Action( + self.__projectAct = EricAction( self.tr('Check Unused Code'), self.tr('&Unused Code...'), 0, 0, self, 'project_check_vulture') @@ -215,11 +217,11 @@ )) self.__projectAct.triggered.connect( self.__projectVultureCheck) - e5App().getObject("Project").addE5Actions([self.__projectAct]) + ericApp().getObject("Project").addEricActions([self.__projectAct]) menu.addAction(self.__projectAct) - e5App().getObject("Project").showMenu.connect(self.__projectShowMenu) - e5App().getObject("Project").projectClosed.connect( + ericApp().getObject("Project").showMenu.connect(self.__projectShowMenu) + ericApp().getObject("Project").projectClosed.connect( self.__projectClosed) return None, True @@ -228,15 +230,15 @@ """ Public method to deactivate this plug-in. """ - e5App().getObject("Project").showMenu.disconnect( + ericApp().getObject("Project").showMenu.disconnect( self.__projectShowMenu) - e5App().getObject("Project").projectClosed.disconnect( + ericApp().getObject("Project").projectClosed.disconnect( self.__projectClosed) - menu = e5App().getObject("Project").getMenu("Checks") + menu = ericApp().getObject("Project").getMenu("Checks") if menu is not None and self.__projectAct is not None: menu.removeAction(self.__projectAct) - e5App().getObject("Project").removeE5Actions( + ericApp().getObject("Project").removeEricActions( [self.__projectAct]) self.__initialize() @@ -255,7 +257,7 @@ loaded = translator.load(translation, locale_dir) if loaded: self.__translator = translator - e5App().installTranslator(self.__translator) + ericApp().installTranslator(self.__translator) else: print("Warning: translation file '{0}' could not be" " loaded.".format(translation)) @@ -273,7 +275,7 @@ """ if menuName == "Check" and self.__projectAct is not None: self.__projectAct.setEnabled( - e5App().getObject("Project") + ericApp().getObject("Project") .getProjectLanguage() == "Python3" ) @@ -281,14 +283,16 @@ """ Private slot used to check the project for unused code. """ - project = e5App().getObject("Project") + project = ericApp().getObject("Project") project.saveAllScripts() ppath = project.getProjectPath() - files = [os.path.join(ppath, file_) - for file_ in project.getSources() - if file_.endswith( - tuple(Preferences.getPython("Python3Extensions")) + - tuple(Preferences.getPython("PythonExtensions")))] + files = [ + os.path.join(ppath, file_) + for file_ in project.getSources() + if file_.endswith( + tuple(Preferences.getPython("Python3Extensions")) + ) + ] if self.__projectVultureCheckerDialog is None: from VultureChecker.VultureCheckerDialog import (
--- a/VultureChecker/Documentation/source/Plugin_Checker_Vulture.PluginVulture.html Tue May 25 19:30:18 2021 +0200 +++ b/VultureChecker/Documentation/source/Plugin_Checker_Vulture.PluginVulture.html Tue May 25 19:36:03 2021 +0200 @@ -165,9 +165,9 @@ </p> <dl> -<dt><i>ui</i></dt> +<dt><i>ui</i> (UserInterface)</dt> <dd> -reference to the user interface object (UI.UserInterface) +reference to the user interface object </dd> </dl> <a NAME="VulturePlugin.__initialize" ID="VulturePlugin.__initialize"></a> @@ -245,7 +245,13 @@ <dl> <dt>Return:</dt> <dd> -tuple of None and activation status (boolean) +tuple of None and activation status +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +tuple of (None, bool) </dd> </dl> <a NAME="VulturePlugin.batchJobDone" ID="VulturePlugin.batchJobDone"></a>
--- a/VultureChecker/Documentation/source/Plugin_Checker_Vulture.VultureChecker.VultureCheckerService.html Tue May 25 19:30:18 2021 +0200 +++ b/VultureChecker/Documentation/source/Plugin_Checker_Vulture.VultureChecker.VultureCheckerService.html Tue May 25 19:36:03 2021 +0200 @@ -65,7 +65,7 @@ </tr> <tr> <td><a href="#worker">worker</a></td> -<td>Module function acting as the parallel worker for the cyclomatic complexity calculation.</td> +<td>Module function acting as the parallel worker for the vulture check.</td> </tr> </table> <hr /> @@ -291,8 +291,7 @@ <b>worker</b>(<i>inputQueue, outputQueue</i>) <p> - Module function acting as the parallel worker for the cyclomatic - complexity calculation. + Module function acting as the parallel worker for the vulture check. </p> <dl>
--- a/VultureChecker/EditWhiteListDialog.py Tue May 25 19:30:18 2021 +0200 +++ b/VultureChecker/EditWhiteListDialog.py Tue May 25 19:36:03 2021 +0200 @@ -7,8 +7,8 @@ Module implementing the whitelist edit dialog. """ -from PyQt5.QtCore import pyqtSlot -from PyQt5.QtWidgets import QDialog, QInputDialog, QLineEdit +from PyQt6.QtCore import pyqtSlot +from PyQt6.QtWidgets import QDialog, QInputDialog, QLineEdit from .Ui_EditWhiteListDialog import Ui_EditWhiteListDialog @@ -130,7 +130,7 @@ self.tr("Add to Whitelist"), self.tr("Enter a name or wildcard pattern to be added to the" " current whitelist:"), - QLineEdit.Normal) + QLineEdit.EchoMode.Normal) if ok and bool(name): curr = self.__lists[self.listsWidget.currentIndex()] if curr is self.patternsList or self.__isPattern(name):
--- a/VultureChecker/VultureCheckerDialog.py Tue May 25 19:30:18 2021 +0200 +++ b/VultureChecker/VultureCheckerDialog.py Tue May 25 19:36:03 2021 +0200 @@ -11,15 +11,15 @@ import fnmatch import contextlib -from PyQt5.QtCore import pyqtSlot, qVersion, Qt, QTimer, QRegExp -from PyQt5.QtWidgets import ( +from PyQt6.QtCore import pyqtSlot, Qt, QTimer +from PyQt6.QtWidgets import ( QDialog, QDialogButtonBox, QAbstractButton, QHeaderView, QTreeWidgetItem, QApplication, QMenu ) from .Ui_VultureCheckerDialog import Ui_VultureCheckerDialog -from E5Gui.E5Application import e5App +from EricWidgets.EricApplication import ericApp import Preferences import Utilities @@ -59,8 +59,8 @@ """ Class implementing a dialog to show the vulture check results. """ - FilePathRole = Qt.UserRole + 1 - TypeRole = Qt.UserRole + 2 + FilePathRole = Qt.ItemDataRole.UserRole + 1 + TypeRole = Qt.ItemDataRole.UserRole + 2 def __init__(self, vultureService, parent=None): """ @@ -73,10 +73,12 @@ """ super().__init__(parent) self.setupUi(self) - self.setWindowFlags(Qt.Window) + self.setWindowFlags(Qt.WindowType.Window) - self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) - self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Close).setEnabled(False) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Cancel).setDefault(True) self.resultList.headerItem().setText(self.resultList.columnCount(), "") @@ -101,7 +103,7 @@ self.cancelled = False - self.__project = e5App().getObject("Project") + self.__project = ericApp().getObject("Project") self.__finished = True self.__errorItem = None self.__data = None @@ -133,13 +135,13 @@ self.__errorItem = QTreeWidgetItem(self.resultList, [ self.tr("Errors")]) self.__errorItem.setExpanded(True) - self.__errorItem.setForeground(0, Qt.red) + self.__errorItem.setForeground(0, Qt.GlobalColor.red) msg = "{0} ({1})".format(self.__project.getRelativePath(filename), message) - if not self.resultList.findItems(msg, Qt.MatchExactly): + if not self.resultList.findItems(msg, Qt.MatchFlag.MatchExactly): itm = QTreeWidgetItem(self.__errorItem, [msg]) - itm.setForeground(0, Qt.red) + itm.setForeground(0, Qt.GlobalColor.red) itm.setFirstColumnSpanned(True) def prepare(self, fileList, project): @@ -154,9 +156,12 @@ self.__fileList = fileList[:] self.__project = project - self.buttonBox.button(QDialogButtonBox.Close).setEnabled(True) - self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False) - self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Close).setEnabled(True) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Cancel).setEnabled(False) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Close).setDefault(True) self.filterFrame.setVisible(True) @@ -197,11 +202,13 @@ self.cancelled = False self.__errorItem = None self.resultList.clear() - QApplication.processEvents() - self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) - self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True) - self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Close).setEnabled(False) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Cancel).setEnabled(True) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Cancel).setDefault(True) QApplication.processEvents() self.__prepareResultLists() @@ -210,8 +217,7 @@ self.files = fn elif os.path.isdir(fn): self.files = [] - extensions = set(Preferences.getPython("PythonExtensions") + - Preferences.getPython("Python3Extensions")) + extensions = set(Preferences.getPython("Python3Extensions")) for ext in extensions: self.files.extend( Utilities.direntries(fn, True, '*{0}'.format(ext), 0)) @@ -373,22 +379,22 @@ # reenable updates of the list self.resultList.setSortingEnabled(True) - self.resultList.sortItems(0, Qt.AscendingOrder) + self.resultList.sortItems(0, Qt.SortOrder.AscendingOrder) self.resultList.setUpdatesEnabled(True) self.cancelled = True - self.buttonBox.button(QDialogButtonBox.Close).setEnabled(True) - self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False) - self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Close).setEnabled(True) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Cancel).setEnabled(False) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Close).setDefault(True) self.resultList.header().resizeSections( QHeaderView.ResizeToContents) self.resultList.header().setStretchLastSection(True) - if qVersion() >= "5.0.0": - self.resultList.header().setSectionResizeMode( - QHeaderView.Interactive) - else: - self.resultList.header().setResizeMode(QHeaderView.Interactive) + self.resultList.header().setSectionResizeMode( + QHeaderView.ResizeMode.Interactive) self.checkProgress.setVisible(False) self.checkProgressLabel.setVisible(False) @@ -406,9 +412,13 @@ @param button button that was clicked @type QAbstractButton """ - if button == self.buttonBox.button(QDialogButtonBox.Close): + if button == self.buttonBox.button( + QDialogButtonBox.StandardButton.Close + ): self.close() - elif button == self.buttonBox.button(QDialogButtonBox.Cancel): + elif button == self.buttonBox.button( + QDialogButtonBox.StandardButton.Cancel + ): self.cancelled = True if self.__batch: self.vultureService.cancelVultureCheckBatch() @@ -460,7 +470,7 @@ except ValueError: lineno = 1 if filename: - vm = e5App().getObject("ViewManager") + vm = ericApp().getObject("ViewManager") vm.openSourceFile(filename, lineno) def __prepareResultLists(self): @@ -521,9 +531,8 @@ """ filteredList = itemList for pattern in self.__data["WhiteLists"]["__patterns__"]: - regExp = QRegExp(pattern, Qt.CaseSensitive, QRegExp.Wildcard) filteredList = [item for item in filteredList - if not regExp.exactMatch(item.name)] + if not fnmatch.fnmatchcase(item.name, pattern)] return filteredList # __IGNORE_WARNING_M834__ def __filterUnusedItems(self, unused, whitelistName): @@ -643,8 +652,8 @@ "{0:3d}%".format(item.confidence), translatedType]) itm.setData(0, self.FilePathRole, item.filename) itm.setData(0, self.TypeRole, item.typ) - itm.setTextAlignment(0, Qt.Alignment(Qt.AlignRight)) # line no - itm.setTextAlignment(2, Qt.Alignment(Qt.AlignRight)) # confidence + itm.setTextAlignment(0, Qt.AlignmentFlag.AlignRight) # line no + itm.setTextAlignment(2, Qt.AlignmentFlag.AlignRight) # confidence def __createFileItem(self, filename): """ @@ -709,7 +718,7 @@ """ from .EditWhiteListDialog import EditWhiteListDialog dlg = EditWhiteListDialog(self.__data["WhiteLists"]) - if dlg.exec() == QDialog.Accepted: + if dlg.exec() == QDialog.DialogCode.Accepted: whitelists = dlg.getWhiteLists() self.__storeWhiteLists(whitelists)
--- a/VultureChecker/VultureCheckerDialog.ui Tue May 25 19:30:18 2021 +0200 +++ b/VultureChecker/VultureCheckerDialog.ui Tue May 25 19:36:03 2021 +0200 @@ -50,10 +50,13 @@ </widget> </item> <item> - <widget class="E5ClearableLineEdit" name="excludeFilesEdit"> + <widget class="QLineEdit" name="excludeFilesEdit"> <property name="toolTip"> <string>Enter filename patterns of files to be excluded separated by a comma</string> </property> + <property name="clearButtonEnabled"> + <bool>true</bool> + </property> </widget> </item> <item> @@ -113,7 +116,7 @@ </widget> </item> <item> - <widget class="E5SqueezeLabelPath" name="checkProgressLabel"> + <widget class="EricSqueezeLabelPath" name="checkProgressLabel"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> <horstretch>0</horstretch> @@ -157,14 +160,9 @@ <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> <customwidgets> <customwidget> - <class>E5ClearableLineEdit</class> - <extends>QLineEdit</extends> - <header>E5Gui/E5LineEdit.h</header> - </customwidget> - <customwidget> - <class>E5SqueezeLabelPath</class> + <class>EricSqueezeLabelPath</class> <extends>QLabel</extends> - <header>E5Gui/E5SqueezeLabels.h</header> + <header>EricWidgets/EricSqueezeLabels.h</header> </customwidget> </customwidgets> <tabstops>
--- a/VultureChecker/VultureCheckerService.py Tue May 25 19:30:18 2021 +0200 +++ b/VultureChecker/VultureCheckerService.py Tue May 25 19:36:03 2021 +0200 @@ -117,8 +117,7 @@ def worker(inputQueue, outputQueue): """ - Module function acting as the parallel worker for the cyclomatic - complexity calculation. + Module function acting as the parallel worker for the vulture check. @param inputQueue input queue @type multiprocessing.Queue
--- a/VultureChecker/i18n/vulture_de.ts Tue May 25 19:30:18 2021 +0200 +++ b/VultureChecker/i18n/vulture_de.ts Tue May 25 19:36:03 2021 +0200 @@ -1,259 +1,260 @@ <?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS><TS version="2.0" language="de_DE" sourcelanguage=""> -<context> +<!DOCTYPE TS> +<TS version="2.0" language="de_DE" sourcelanguage=""> + <context> <name>EditWhiteListDialog</name> <message> - <location filename="../EditWhiteListDialog.ui" line="14"/> - <source>Vulture Whitelists</source> - <translation>Vulture Whitelists</translation> + <location filename="../EditWhiteListDialog.py" line="130" /> + <source>Add to Whitelist</source> + <translation>Zur Whitelist Hinzufügen</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="29"/> - <source>Classes</source> - <translation>Klassen</translation> + <location filename="../EditWhiteListDialog.py" line="131" /> + <source>Enter a name or wildcard pattern to be added to the current whitelist:</source> + <translation>Gib einen zur aktuellen Whitelist hinzuzufügenden Namen oder ein Wildcard Muster ein:</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="49"/> - <source>Functions</source> - <translation>Funktionen</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Vulture Whitelists</source> + <translation>Vulture Whitelists</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="89"/> - <source>Attributes</source> - <translation>Attribute</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Classes</source> + <translation>Klassen</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="109"/> - <source>Variables</source> - <translation>Variablen</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Functions</source> + <translation>Funktionen</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="129"/> - <source>Properties</source> - <translation>Eigenschaften</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Methods</source> + <translation>Methoden</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="169"/> - <source>Patterns</source> - <translation>Muster</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Attributes</source> + <translation>Attribute</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="207"/> - <source>Press to add a whitelist entry</source> - <translation>Drücken, um einen Eintrag zur Whitelist hinzuzufügen</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Variables</source> + <translation>Variablen</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="210"/> - <source>Add...</source> - <translation>Hinzufügen...</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Properties</source> + <translation>Eigenschaften</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="227"/> - <source>Press to remove the selected whitelist entries</source> - <translation>Drücken, um die ausgewählten Whitelisteinträge zu löschen</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Imports</source> + <translation>Imports</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="230"/> - <source>Remove</source> - <translation>Entfernen</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Patterns</source> + <translation>Muster</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="237"/> - <source>Press to remove all whitelist entries</source> - <translation>Drücken, um alle Whitelisteinträge zu löschen</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Press to add a whitelist entry</source> + <translation>Drücken, um einen Eintrag zur Whitelist hinzuzufügen</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="240"/> - <source>Remove All</source> - <translation>Alle Entfernen</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Add...</source> + <translation>Hinzufügen...</translation> </message> <message> - <location filename="../EditWhiteListDialog.py" line="128"/> - <source>Enter a name or wildcard pattern to be added to the current whitelist:</source> - <translation>Gib einen zur aktuellen Whitelist hinzuzufügenden Namen oder ein Wildcard Muster ein:</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Press to remove the selected whitelist entries</source> + <translation>Drücken, um die ausgewählten Whitelisteinträge zu löschen</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="149"/> - <source>Imports</source> - <translation>Imports</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Remove</source> + <translation>Entfernen</translation> </message> <message> - <location filename="../EditWhiteListDialog.py" line="128"/> - <source>Add to Whitelist</source> - <translation>Zur Whitelist Hinzufügen</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Press to remove all whitelist entries</source> + <translation>Drücken, um alle Whitelisteinträge zu löschen</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="69"/> - <source>Methods</source> - <translation>Methoden</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Remove All</source> + <translation>Alle Entfernen</translation> </message> -</context> -<context> + </context> + <context> <name>VultureCheckerDialog</name> <message> - <location filename="../VultureCheckerDialog.ui" line="14"/> - <source>Unused Code Checker</source> - <translation>Checker für ungenutzten Code</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Unused Code Checker</source> + <translation>Checker für ungenutzten Code</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="17"/> - <source><b>Unused Code Checker</b> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source><b>Unused Code Checker</b> <p>This dialog shows unused classes, function, variables, attributes and properties. These are determined through a static analysis. False reports can be added to a whitelist through the context menu.</p></source> - <translation><b>Checker für ungenutzten Code</b> + <translation><b>Checker für ungenutzten Code</b> <p>Dieser Dialog zeigt ungenutzte Klassen, Funktionen, Variable, Attribute und Eigenschaften. Diese werden mittels statischer Codeanalyse ermittelt. Falschmeldungen können über das Kontextmenu zu einer Whitelist hinzugefügt werden.</p></translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="48"/> - <source>Exclude Files:</source> - <translation>Ignoriere Dateien:</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Exclude Files:</source> + <translation>Ignoriere Dateien:</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="55"/> - <source>Enter filename patterns of files to be excluded separated by a comma</source> - <translation>Gib Dateimuster getrennt durch Komma von Dateien ein, die ignoriert werden sollen</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Enter filename patterns of files to be excluded separated by a comma</source> + <translation>Gib Dateimuster getrennt durch Komma von Dateien ein, die ignoriert werden sollen</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="72"/> - <source>Press to start the check</source> - <translation>Drücken, um die Prüfung zu starten</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Press to start the check</source> + <translation>Drücken, um die Prüfung zu starten</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="75"/> - <source>Start</source> - <translation>Starten</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Start</source> + <translation>Starten</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="95"/> - <source>Line</source> - <translation>Zeile</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Line</source> + <translation>Zeile</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="100"/> - <source>Name</source> - <translation>Name</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Name</source> + <translation>Name</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="110"/> - <source>Type</source> - <translation>Typ</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Confidence</source> + <translation>Sicherheit</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="131"/> - <source>Shows the progress of the check</source> - <translation>Zeigt den Fortschritt der Prüfung</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Type</source> + <translation>Typ</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="140"/> - <source>%v/%m Files</source> - <translation>%v/%m Dateien</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Shows the progress of the check</source> + <translation>Zeigt den Fortschritt der Prüfung</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="84"/> - <source>Add to Whitelist</source> - <translation>Zur Whitelist Hinzufügen</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>%v/%m Files</source> + <translation>%v/%m Dateien</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="87"/> - <source>Edit Whitelist</source> - <translation>Whitelist Bearbeiten</translation> + <location filename="../VultureCheckerDialog.py" line="87" /> + <source>Add to Whitelist</source> + <translation>Zur Whitelist Hinzufügen</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="90"/> - <source>Collapse all</source> - <translation>Alle Zuklappen</translation> + <location filename="../VultureCheckerDialog.py" line="90" /> + <source>Edit Whitelist</source> + <translation>Whitelist Bearbeiten</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="92"/> - <source>Expand all</source> - <translation>Alle Aufklappen</translation> + <location filename="../VultureCheckerDialog.py" line="93" /> + <source>Collapse all</source> + <translation>Alle Zuklappen</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="114"/> - <source>Property</source> - <translation>Eigenschaft</translation> + <location filename="../VultureCheckerDialog.py" line="95" /> + <source>Expand all</source> + <translation>Alle Aufklappen</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="115"/> - <source>Function</source> - <translation>Funktion</translation> + <location filename="../VultureCheckerDialog.py" line="116" /> + <source>Property</source> + <translation>Eigenschaft</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="117"/> - <source>Attribute</source> - <translation>Attribut</translation> + <location filename="../VultureCheckerDialog.py" line="117" /> + <source>Function</source> + <translation>Funktion</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="118"/> - <source>Variable</source> - <translation>Variable</translation> + <location filename="../VultureCheckerDialog.py" line="118" /> + <source>Methode</source> + <translation>Methoden</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="119"/> - <source>Class</source> - <translation>Klasse</translation> + <location filename="../VultureCheckerDialog.py" line="119" /> + <source>Attribute</source> + <translation>Attribut</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="133"/> - <source>Errors</source> - <translation>Fehler</translation> + <location filename="../VultureCheckerDialog.py" line="120" /> + <source>Variable</source> + <translation>Variable</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="286"/> - <source>Preparing files...</source> - <translation>Bereite Dateien vor...</translation> + <location filename="../VultureCheckerDialog.py" line="121" /> + <source>Class</source> + <translation>Klasse</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="304"/> - <source>Transferring data...</source> - <translation>Übertrage Daten...</translation> + <location filename="../VultureCheckerDialog.py" line="122" /> + <source>Import</source> + <translation>Import</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="105"/> - <source>Confidence</source> - <translation>Sicherheit</translation> + <location filename="../VultureCheckerDialog.py" line="136" /> + <source>Errors</source> + <translation>Fehler</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="120"/> - <source>Import</source> - <translation>Import</translation> + <location filename="../VultureCheckerDialog.py" line="292" /> + <source>Preparing files...</source> + <translation>Bereite Dateien vor...</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="397"/> - <source>No unused code found.</source> - <translation>Es wurde kein ungenutzter Code gefunden.</translation> + <location filename="../VultureCheckerDialog.py" line="310" /> + <source>Transferring data...</source> + <translation>Übertrage Daten...</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="116"/> - <source>Methode</source> - <translation>Methoden</translation> + <location filename="../VultureCheckerDialog.py" line="404" /> + <source>No unused code found.</source> + <translation>Es wurde kein ungenutzter Code gefunden.</translation> </message> -</context> -<context> + </context> + <context> <name>VulturePlugin</name> <message> - <location filename="../../PluginVulture.py" line="105"/> - <source>Python 3 batch job</source> - <translation>Python 3 Stapelverarbeitung</translation> + <location filename="../../PluginVulture.py" line="106" /> + <source>Python 3 batch job</source> + <translation>Python 3 Stapelverarbeitung</translation> </message> <message> - <location filename="../../PluginVulture.py" line="206"/> - <source>Check Unused Code</source> - <translation>Prüfe auf Ungenutzten Code</translation> + <location filename="../../PluginVulture.py" line="209" /> + <source>Check Unused Code</source> + <translation>Prüfe auf Ungenutzten Code</translation> </message> <message> - <location filename="../../PluginVulture.py" line="206"/> - <source>&Unused Code...</source> - <translation>&Ungenutzter Code...</translation> + <location filename="../../PluginVulture.py" line="210" /> + <source>&Unused Code...</source> + <translation>&Ungenutzter Code...</translation> </message> <message> - <location filename="../../PluginVulture.py" line="210"/> - <source>Check for unused code</source> - <translation>Auf ungenutzten Code überprüfen</translation> + <location filename="../../PluginVulture.py" line="213" /> + <source>Check for unused code</source> + <translation>Auf ungenutzten Code überprüfen</translation> </message> <message> - <location filename="../../PluginVulture.py" line="212"/> - <source><b>Check Unused Code...</b><p>This checks a Python project for unused code.</p></source> - <translation><b>Prüfe auf Ungenutzten Code...</b><p>Dies überprüft ein Python Projekt auf ungenutzten Code.</p></translation> + <location filename="../../PluginVulture.py" line="214" /> + <source><b>Check Unused Code...</b><p>This checks a Python project for unused code.</p></source> + <translation><b>Prüfe auf Ungenutzten Code...</b><p>Dies überprüft ein Python Projekt auf ungenutzten Code.</p></translation> </message> -</context> + </context> </TS>
--- a/VultureChecker/i18n/vulture_en.ts Tue May 25 19:30:18 2021 +0200 +++ b/VultureChecker/i18n/vulture_en.ts Tue May 25 19:36:03 2021 +0200 @@ -1,258 +1,259 @@ <?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS><TS version="2.0" language="en_US" sourcelanguage=""> -<context> +<!DOCTYPE TS> +<TS version="2.0" language="en_US" sourcelanguage=""> + <context> <name>EditWhiteListDialog</name> <message> - <location filename="../EditWhiteListDialog.ui" line="14"/> - <source>Vulture Whitelists</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.py" line="130" /> + <source>Add to Whitelist</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="29"/> - <source>Classes</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.py" line="131" /> + <source>Enter a name or wildcard pattern to be added to the current whitelist:</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="49"/> - <source>Functions</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Vulture Whitelists</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="89"/> - <source>Attributes</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Classes</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="109"/> - <source>Variables</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Functions</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="129"/> - <source>Properties</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Methods</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="169"/> - <source>Patterns</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Attributes</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="207"/> - <source>Press to add a whitelist entry</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Variables</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="210"/> - <source>Add...</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Properties</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="227"/> - <source>Press to remove the selected whitelist entries</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Imports</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="230"/> - <source>Remove</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Patterns</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="237"/> - <source>Press to remove all whitelist entries</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Press to add a whitelist entry</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="240"/> - <source>Remove All</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Add...</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.py" line="128"/> - <source>Enter a name or wildcard pattern to be added to the current whitelist:</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Press to remove the selected whitelist entries</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="149"/> - <source>Imports</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Remove</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.py" line="128"/> - <source>Add to Whitelist</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Press to remove all whitelist entries</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="69"/> - <source>Methods</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Remove All</source> + <translation type="unfinished" /> </message> -</context> -<context> + </context> + <context> <name>VultureCheckerDialog</name> <message> - <location filename="../VultureCheckerDialog.ui" line="14"/> - <source>Unused Code Checker</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Unused Code Checker</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="17"/> - <source><b>Unused Code Checker</b> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source><b>Unused Code Checker</b> <p>This dialog shows unused classes, function, variables, attributes and properties. These are determined through a static analysis. False reports can be added to a whitelist through the context menu.</p></source> - <translation type="unfinished"></translation> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="48"/> - <source>Exclude Files:</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Exclude Files:</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="55"/> - <source>Enter filename patterns of files to be excluded separated by a comma</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Enter filename patterns of files to be excluded separated by a comma</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="72"/> - <source>Press to start the check</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Press to start the check</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="75"/> - <source>Start</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Start</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="95"/> - <source>Line</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Line</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="100"/> - <source>Name</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Name</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="110"/> - <source>Type</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Confidence</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="131"/> - <source>Shows the progress of the check</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Type</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="140"/> - <source>%v/%m Files</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Shows the progress of the check</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="84"/> - <source>Add to Whitelist</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>%v/%m Files</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="87"/> - <source>Edit Whitelist</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="87" /> + <source>Add to Whitelist</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="90"/> - <source>Collapse all</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="90" /> + <source>Edit Whitelist</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="92"/> - <source>Expand all</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="93" /> + <source>Collapse all</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="114"/> - <source>Property</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="95" /> + <source>Expand all</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="115"/> - <source>Function</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="116" /> + <source>Property</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="117"/> - <source>Attribute</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="117" /> + <source>Function</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="118"/> - <source>Variable</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="118" /> + <source>Methode</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="119"/> - <source>Class</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="119" /> + <source>Attribute</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="133"/> - <source>Errors</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="120" /> + <source>Variable</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="286"/> - <source>Preparing files...</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="121" /> + <source>Class</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="304"/> - <source>Transferring data...</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="122" /> + <source>Import</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="105"/> - <source>Confidence</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="136" /> + <source>Errors</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="120"/> - <source>Import</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="292" /> + <source>Preparing files...</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="397"/> - <source>No unused code found.</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="310" /> + <source>Transferring data...</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="116"/> - <source>Methode</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="404" /> + <source>No unused code found.</source> + <translation type="unfinished" /> </message> -</context> -<context> + </context> + <context> <name>VulturePlugin</name> <message> - <location filename="../../PluginVulture.py" line="105"/> - <source>Python 3 batch job</source> - <translation type="unfinished"></translation> + <location filename="../../PluginVulture.py" line="106" /> + <source>Python 3 batch job</source> + <translation type="unfinished" /> </message> <message> - <location filename="../../PluginVulture.py" line="206"/> - <source>Check Unused Code</source> - <translation type="unfinished"></translation> + <location filename="../../PluginVulture.py" line="209" /> + <source>Check Unused Code</source> + <translation type="unfinished" /> </message> <message> - <location filename="../../PluginVulture.py" line="206"/> - <source>&Unused Code...</source> - <translation type="unfinished"></translation> + <location filename="../../PluginVulture.py" line="210" /> + <source>&Unused Code...</source> + <translation type="unfinished" /> </message> <message> - <location filename="../../PluginVulture.py" line="210"/> - <source>Check for unused code</source> - <translation type="unfinished"></translation> + <location filename="../../PluginVulture.py" line="213" /> + <source>Check for unused code</source> + <translation type="unfinished" /> </message> <message> - <location filename="../../PluginVulture.py" line="212"/> - <source><b>Check Unused Code...</b><p>This checks a Python project for unused code.</p></source> - <translation type="unfinished"></translation> + <location filename="../../PluginVulture.py" line="214" /> + <source><b>Check Unused Code...</b><p>This checks a Python project for unused code.</p></source> + <translation type="unfinished" /> </message> -</context> + </context> </TS>
--- a/VultureChecker/i18n/vulture_es.ts Tue May 25 19:30:18 2021 +0200 +++ b/VultureChecker/i18n/vulture_es.ts Tue May 25 19:36:03 2021 +0200 @@ -1,259 +1,260 @@ <?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS><TS version="2.0" language="es_ES" sourcelanguage=""> -<context> +<!DOCTYPE TS> +<TS version="2.0" language="es_ES" sourcelanguage=""> + <context> <name>EditWhiteListDialog</name> <message> - <location filename="../EditWhiteListDialog.ui" line="14"/> - <source>Vulture Whitelists</source> - <translation>Listas Blancas para Vulture</translation> + <location filename="../EditWhiteListDialog.py" line="130" /> + <source>Add to Whitelist</source> + <translation type="unfinished">Añadir a la Lista Blanca</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="29"/> - <source>Classes</source> - <translation>Clases</translation> + <location filename="../EditWhiteListDialog.py" line="131" /> + <source>Enter a name or wildcard pattern to be added to the current whitelist:</source> + <translation>Introducir nombre o patrón con comodines para añadir a la lista blanca actual:</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="49"/> - <source>Functions</source> - <translation>Funciones</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Vulture Whitelists</source> + <translation>Listas Blancas para Vulture</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="89"/> - <source>Attributes</source> - <translation>Atributos</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Classes</source> + <translation>Clases</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="109"/> - <source>Variables</source> - <translation>Variables</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Functions</source> + <translation>Funciones</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="129"/> - <source>Properties</source> - <translation>Propiedades</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Methods</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="169"/> - <source>Patterns</source> - <translation>Patrones</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Attributes</source> + <translation>Atributos</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="207"/> - <source>Press to add a whitelist entry</source> - <translation>Pulsar para añadir una entrada en la lista blanca</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Variables</source> + <translation>Variables</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="210"/> - <source>Add...</source> - <translation>Añadir...</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Properties</source> + <translation>Propiedades</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="227"/> - <source>Press to remove the selected whitelist entries</source> - <translation>Pulsar para eliminar las entradas seleccionadas de la lista blanca</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Imports</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="230"/> - <source>Remove</source> - <translation>Eliminar</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Patterns</source> + <translation>Patrones</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="237"/> - <source>Press to remove all whitelist entries</source> - <translation>Pulsar para eliminar todas las entradas de la lista blanca</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Press to add a whitelist entry</source> + <translation>Pulsar para añadir una entrada en la lista blanca</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="240"/> - <source>Remove All</source> - <translation>Eliminar todo</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Add...</source> + <translation>Añadir...</translation> </message> <message> - <location filename="../EditWhiteListDialog.py" line="128"/> - <source>Enter a name or wildcard pattern to be added to the current whitelist:</source> - <translation>Introducir nombre o patrón con comodines para añadir a la lista blanca actual:</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Press to remove the selected whitelist entries</source> + <translation>Pulsar para eliminar las entradas seleccionadas de la lista blanca</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="149"/> - <source>Imports</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Remove</source> + <translation>Eliminar</translation> </message> <message> - <location filename="../EditWhiteListDialog.py" line="128"/> - <source>Add to Whitelist</source> - <translation type="unfinished">Añadir a la Lista Blanca</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Press to remove all whitelist entries</source> + <translation>Pulsar para eliminar todas las entradas de la lista blanca</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="69"/> - <source>Methods</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Remove All</source> + <translation>Eliminar todo</translation> </message> -</context> -<context> + </context> + <context> <name>VultureCheckerDialog</name> <message> - <location filename="../VultureCheckerDialog.ui" line="14"/> - <source>Unused Code Checker</source> - <translation>Comprobador de Código no Usado</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Unused Code Checker</source> + <translation>Comprobador de Código no Usado</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="17"/> - <source><b>Unused Code Checker</b> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source><b>Unused Code Checker</b> <p>This dialog shows unused classes, function, variables, attributes and properties. These are determined through a static analysis. False reports can be added to a whitelist through the context menu.</p></source> - <translation><b>Comprobador de Código no Usado</b> + <translation><b>Comprobador de Código no Usado</b> <p>Este diálogo muestra clases, funciones, variables, atributos y propiedades que no se usan. Se determinan a través de un análisis estático. Los falsos positivos se pueden añadir a la lista blanca a través del menú de contexto.</p></translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="48"/> - <source>Exclude Files:</source> - <translation>Excluir Archivos:</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Exclude Files:</source> + <translation>Excluir Archivos:</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="55"/> - <source>Enter filename patterns of files to be excluded separated by a comma</source> - <translation>Introducir patrones de nombre para archivos a excluir, separados por comas</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Enter filename patterns of files to be excluded separated by a comma</source> + <translation>Introducir patrones de nombre para archivos a excluir, separados por comas</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="72"/> - <source>Press to start the check</source> - <translation>Pulsar para iniciar la comprobación</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Press to start the check</source> + <translation>Pulsar para iniciar la comprobación</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="75"/> - <source>Start</source> - <translation>Iniciar</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Start</source> + <translation>Iniciar</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="95"/> - <source>Line</source> - <translation>Línea</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Line</source> + <translation>Línea</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="100"/> - <source>Name</source> - <translation>Nombre</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Name</source> + <translation>Nombre</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="110"/> - <source>Type</source> - <translation>Tipo</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Confidence</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="131"/> - <source>Shows the progress of the check</source> - <translation>Muestra el progreso de la comprobación</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Type</source> + <translation>Tipo</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="140"/> - <source>%v/%m Files</source> - <translation>Archivos %v/%m</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Shows the progress of the check</source> + <translation>Muestra el progreso de la comprobación</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="84"/> - <source>Add to Whitelist</source> - <translation>Añadir a la Lista Blanca</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>%v/%m Files</source> + <translation>Archivos %v/%m</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="87"/> - <source>Edit Whitelist</source> - <translation>Editar Lista Blanca</translation> + <location filename="../VultureCheckerDialog.py" line="87" /> + <source>Add to Whitelist</source> + <translation>Añadir a la Lista Blanca</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="90"/> - <source>Collapse all</source> - <translation>Contraer todo</translation> + <location filename="../VultureCheckerDialog.py" line="90" /> + <source>Edit Whitelist</source> + <translation>Editar Lista Blanca</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="92"/> - <source>Expand all</source> - <translation>Expandir todo</translation> + <location filename="../VultureCheckerDialog.py" line="93" /> + <source>Collapse all</source> + <translation>Contraer todo</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="114"/> - <source>Property</source> - <translation>Propiedad</translation> + <location filename="../VultureCheckerDialog.py" line="95" /> + <source>Expand all</source> + <translation>Expandir todo</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="115"/> - <source>Function</source> - <translation>Función</translation> + <location filename="../VultureCheckerDialog.py" line="116" /> + <source>Property</source> + <translation>Propiedad</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="117"/> - <source>Attribute</source> - <translation>Atributo</translation> + <location filename="../VultureCheckerDialog.py" line="117" /> + <source>Function</source> + <translation>Función</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="118"/> - <source>Variable</source> - <translation>Variable</translation> + <location filename="../VultureCheckerDialog.py" line="118" /> + <source>Methode</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="119"/> - <source>Class</source> - <translation>Clase</translation> + <location filename="../VultureCheckerDialog.py" line="119" /> + <source>Attribute</source> + <translation>Atributo</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="133"/> - <source>Errors</source> - <translation>Errores</translation> + <location filename="../VultureCheckerDialog.py" line="120" /> + <source>Variable</source> + <translation>Variable</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="286"/> - <source>Preparing files...</source> - <translation>Preparando archivos...</translation> + <location filename="../VultureCheckerDialog.py" line="121" /> + <source>Class</source> + <translation>Clase</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="304"/> - <source>Transferring data...</source> - <translation>Transfiriendo datos...</translation> + <location filename="../VultureCheckerDialog.py" line="122" /> + <source>Import</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="105"/> - <source>Confidence</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="136" /> + <source>Errors</source> + <translation>Errores</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="120"/> - <source>Import</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="292" /> + <source>Preparing files...</source> + <translation>Preparando archivos...</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="397"/> - <source>No unused code found.</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="310" /> + <source>Transferring data...</source> + <translation>Transfiriendo datos...</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="116"/> - <source>Methode</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="404" /> + <source>No unused code found.</source> + <translation type="unfinished" /> </message> -</context> -<context> + </context> + <context> <name>VulturePlugin</name> <message> - <location filename="../../PluginVulture.py" line="105"/> - <source>Python 3 batch job</source> - <translation>Trabajo por lotes de Python 3</translation> + <location filename="../../PluginVulture.py" line="106" /> + <source>Python 3 batch job</source> + <translation>Trabajo por lotes de Python 3</translation> </message> <message> - <location filename="../../PluginVulture.py" line="206"/> - <source>Check Unused Code</source> - <translation>Comprobar Código no Usado</translation> + <location filename="../../PluginVulture.py" line="209" /> + <source>Check Unused Code</source> + <translation>Comprobar Código no Usado</translation> </message> <message> - <location filename="../../PluginVulture.py" line="206"/> - <source>&Unused Code...</source> - <translation>Código no &Usado...</translation> + <location filename="../../PluginVulture.py" line="210" /> + <source>&Unused Code...</source> + <translation>Código no &Usado...</translation> </message> <message> - <location filename="../../PluginVulture.py" line="210"/> - <source>Check for unused code</source> - <translation>Comprobar código no usado</translation> + <location filename="../../PluginVulture.py" line="213" /> + <source>Check for unused code</source> + <translation>Comprobar código no usado</translation> </message> <message> - <location filename="../../PluginVulture.py" line="212"/> - <source><b>Check Unused Code...</b><p>This checks a Python project for unused code.</p></source> - <translation><b>Comprobar Código no Usado...</b><p>Comprueba un projecto Python buscando código no usado.</p></translation> + <location filename="../../PluginVulture.py" line="214" /> + <source><b>Check Unused Code...</b><p>This checks a Python project for unused code.</p></source> + <translation><b>Comprobar Código no Usado...</b><p>Comprueba un projecto Python buscando código no usado.</p></translation> </message> -</context> + </context> </TS>
--- a/VultureChecker/i18n/vulture_ru.ts Tue May 25 19:30:18 2021 +0200 +++ b/VultureChecker/i18n/vulture_ru.ts Tue May 25 19:36:03 2021 +0200 @@ -1,259 +1,260 @@ <?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS><TS version="2.0" language="ru_RU" sourcelanguage=""> -<context> +<!DOCTYPE TS> +<TS version="2.0" language="ru_RU" sourcelanguage=""> + <context> <name>EditWhiteListDialog</name> <message> - <location filename="../EditWhiteListDialog.ui" line="14"/> - <source>Vulture Whitelists</source> - <translation>Vulture белый список</translation> + <location filename="../EditWhiteListDialog.py" line="130" /> + <source>Add to Whitelist</source> + <translation>Добавить в белый список</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="29"/> - <source>Classes</source> - <translation>Классы</translation> + <location filename="../EditWhiteListDialog.py" line="131" /> + <source>Enter a name or wildcard pattern to be added to the current whitelist:</source> + <translation>Задайте имя или метасимволы шаблона для добавления в текущий белый список:</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="49"/> - <source>Functions</source> - <translation>Функции</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Vulture Whitelists</source> + <translation>Vulture белый список</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="89"/> - <source>Attributes</source> - <translation>Атрибуты</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Classes</source> + <translation>Классы</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="109"/> - <source>Variables</source> - <translation>Переменные</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Functions</source> + <translation>Функции</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="129"/> - <source>Properties</source> - <translation>Свойства</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Methods</source> + <translation type="unfinished" /> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="169"/> - <source>Patterns</source> - <translation>Шаблоны</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Attributes</source> + <translation>Атрибуты</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="207"/> - <source>Press to add a whitelist entry</source> - <translation>Добавить записи в белый список</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Variables</source> + <translation>Переменные</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="210"/> - <source>Add...</source> - <translation>Добавить...</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Properties</source> + <translation>Свойства</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="227"/> - <source>Press to remove the selected whitelist entries</source> - <translation>Удалить выбранные записи белого списка</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Imports</source> + <translation>Импорт</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="230"/> - <source>Remove</source> - <translation>Удалить</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Patterns</source> + <translation>Шаблоны</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="237"/> - <source>Press to remove all whitelist entries</source> - <translation>Удалить все записи белого списка</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Press to add a whitelist entry</source> + <translation>Добавить записи в белый список</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="240"/> - <source>Remove All</source> - <translation>Удалить все</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Add...</source> + <translation>Добавить...</translation> </message> <message> - <location filename="../EditWhiteListDialog.py" line="128"/> - <source>Enter a name or wildcard pattern to be added to the current whitelist:</source> - <translation>Задайте имя или метасимволы шаблона для добавления в текущий белый список:</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Press to remove the selected whitelist entries</source> + <translation>Удалить выбранные записи белого списка</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="149"/> - <source>Imports</source> - <translation>Импорт</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Remove</source> + <translation>Удалить</translation> </message> <message> - <location filename="../EditWhiteListDialog.py" line="128"/> - <source>Add to Whitelist</source> - <translation>Добавить в белый список</translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Press to remove all whitelist entries</source> + <translation>Удалить все записи белого списка</translation> </message> <message> - <location filename="../EditWhiteListDialog.ui" line="69"/> - <source>Methods</source> - <translation type="unfinished"></translation> + <location filename="../EditWhiteListDialog.ui" line="0" /> + <source>Remove All</source> + <translation>Удалить все</translation> </message> -</context> -<context> + </context> + <context> <name>VultureCheckerDialog</name> <message> - <location filename="../VultureCheckerDialog.ui" line="14"/> - <source>Unused Code Checker</source> - <translation>Проверка неиспользованного кода</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Unused Code Checker</source> + <translation>Проверка неиспользованного кода</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="17"/> - <source><b>Unused Code Checker</b> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source><b>Unused Code Checker</b> <p>This dialog shows unused classes, function, variables, attributes and properties. These are determined through a static analysis. False reports can be added to a whitelist through the context menu.</p></source> - <translation>b>Проверка неиспользованного кодаr</b> + <translation>b>Проверка неиспользованного кодаr</b> <p>Диалог отображает неиспользованные классы, функции, переменные, аттрибуты и свойства. Они определяются посредством статического анализа. Ложные сообщения могут быть добавлены в белый список через контекстное меню.</p></translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="48"/> - <source>Exclude Files:</source> - <translation>Исключить файлы:</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Exclude Files:</source> + <translation>Исключить файлы:</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="55"/> - <source>Enter filename patterns of files to be excluded separated by a comma</source> - <translation>Введите шаблоны имен исключаемых файлов, разделенные запятыми</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Enter filename patterns of files to be excluded separated by a comma</source> + <translation>Введите шаблоны имен исключаемых файлов, разделенные запятыми</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="72"/> - <source>Press to start the check</source> - <translation>Выполнить проверку</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Press to start the check</source> + <translation>Выполнить проверку</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="75"/> - <source>Start</source> - <translation>Старт</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Start</source> + <translation>Старт</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="95"/> - <source>Line</source> - <translation>Строка</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Line</source> + <translation>Строка</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="100"/> - <source>Name</source> - <translation>Имя</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Name</source> + <translation>Имя</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="110"/> - <source>Type</source> - <translation>Тип</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Confidence</source> + <translation>Достоверность</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="131"/> - <source>Shows the progress of the check</source> - <translation>Отображение процесса проверки</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Type</source> + <translation>Тип</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="140"/> - <source>%v/%m Files</source> - <translation>%v из %m файлов</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>Shows the progress of the check</source> + <translation>Отображение процесса проверки</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="84"/> - <source>Add to Whitelist</source> - <translation>Добавить в белый список</translation> + <location filename="../VultureCheckerDialog.ui" line="0" /> + <source>%v/%m Files</source> + <translation>%v из %m файлов</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="87"/> - <source>Edit Whitelist</source> - <translation>Правка белого списка</translation> + <location filename="../VultureCheckerDialog.py" line="87" /> + <source>Add to Whitelist</source> + <translation>Добавить в белый список</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="90"/> - <source>Collapse all</source> - <translation>Свернуть все</translation> + <location filename="../VultureCheckerDialog.py" line="90" /> + <source>Edit Whitelist</source> + <translation>Правка белого списка</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="92"/> - <source>Expand all</source> - <translation>Развернуть все</translation> + <location filename="../VultureCheckerDialog.py" line="93" /> + <source>Collapse all</source> + <translation>Свернуть все</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="114"/> - <source>Property</source> - <translation>Свойство</translation> + <location filename="../VultureCheckerDialog.py" line="95" /> + <source>Expand all</source> + <translation>Развернуть все</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="115"/> - <source>Function</source> - <translation>Функция</translation> + <location filename="../VultureCheckerDialog.py" line="116" /> + <source>Property</source> + <translation>Свойство</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="117"/> - <source>Attribute</source> - <translation>Атрибут</translation> + <location filename="../VultureCheckerDialog.py" line="117" /> + <source>Function</source> + <translation>Функция</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="118"/> - <source>Variable</source> - <translation>Переменная</translation> + <location filename="../VultureCheckerDialog.py" line="118" /> + <source>Methode</source> + <translation type="unfinished" /> </message> <message> - <location filename="../VultureCheckerDialog.py" line="119"/> - <source>Class</source> - <translation>Класс</translation> + <location filename="../VultureCheckerDialog.py" line="119" /> + <source>Attribute</source> + <translation>Атрибут</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="133"/> - <source>Errors</source> - <translation>Ошибки</translation> + <location filename="../VultureCheckerDialog.py" line="120" /> + <source>Variable</source> + <translation>Переменная</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="286"/> - <source>Preparing files...</source> - <translation>Подготовка файлов...</translation> + <location filename="../VultureCheckerDialog.py" line="121" /> + <source>Class</source> + <translation>Класс</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="304"/> - <source>Transferring data...</source> - <translation>Передача данных...</translation> + <location filename="../VultureCheckerDialog.py" line="122" /> + <source>Import</source> + <translation>Импорт</translation> </message> <message> - <location filename="../VultureCheckerDialog.ui" line="105"/> - <source>Confidence</source> - <translation>Достоверность</translation> + <location filename="../VultureCheckerDialog.py" line="136" /> + <source>Errors</source> + <translation>Ошибки</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="120"/> - <source>Import</source> - <translation>Импорт</translation> + <location filename="../VultureCheckerDialog.py" line="292" /> + <source>Preparing files...</source> + <translation>Подготовка файлов...</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="397"/> - <source>No unused code found.</source> - <translation>Неиспользуемый код не найден.</translation> + <location filename="../VultureCheckerDialog.py" line="310" /> + <source>Transferring data...</source> + <translation>Передача данных...</translation> </message> <message> - <location filename="../VultureCheckerDialog.py" line="116"/> - <source>Methode</source> - <translation type="unfinished"></translation> + <location filename="../VultureCheckerDialog.py" line="404" /> + <source>No unused code found.</source> + <translation>Неиспользуемый код не найден.</translation> </message> -</context> -<context> + </context> + <context> <name>VulturePlugin</name> <message> - <location filename="../../PluginVulture.py" line="105"/> - <source>Python 3 batch job</source> - <translation>Пакетное задание Python 3</translation> + <location filename="../../PluginVulture.py" line="106" /> + <source>Python 3 batch job</source> + <translation>Пакетное задание Python 3</translation> </message> <message> - <location filename="../../PluginVulture.py" line="206"/> - <source>Check Unused Code</source> - <translation>Проверка неиспользуемого кода</translation> + <location filename="../../PluginVulture.py" line="209" /> + <source>Check Unused Code</source> + <translation>Проверка неиспользуемого кода</translation> </message> <message> - <location filename="../../PluginVulture.py" line="206"/> - <source>&Unused Code...</source> - <translation>&Неиспользованный код...</translation> + <location filename="../../PluginVulture.py" line="210" /> + <source>&Unused Code...</source> + <translation>&Неиспользованный код...</translation> </message> <message> - <location filename="../../PluginVulture.py" line="210"/> - <source>Check for unused code</source> - <translation>Проверка неиспользуемого кода</translation> + <location filename="../../PluginVulture.py" line="213" /> + <source>Check for unused code</source> + <translation>Проверка неиспользуемого кода</translation> </message> <message> - <location filename="../../PluginVulture.py" line="212"/> - <source><b>Check Unused Code...</b><p>This checks a Python project for unused code.</p></source> - <translation><b>Проверка неиспользуемого кода...</b><p>Эта проверка позволяет выявить в проекте Python неиспользованный код.</p></translation> + <location filename="../../PluginVulture.py" line="214" /> + <source><b>Check Unused Code...</b><p>This checks a Python project for unused code.</p></source> + <translation><b>Проверка неиспользуемого кода...</b><p>Эта проверка позволяет выявить в проекте Python неиспользованный код.</p></translation> </message> -</context> + </context> </TS>