From 3d62160bf0d2649d6ab1c97a2eb202686fe8dad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20M=C3=B6sner?= Date: Fri, 16 Dec 2022 21:38:28 +0100 Subject: [PATCH 1/2] Fix some translations --- wingetui/uiSections.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wingetui/uiSections.py b/wingetui/uiSections.py index ec42564fa5..5490c1a342 100644 --- a/wingetui/uiSections.py +++ b/wingetui/uiSections.py @@ -1984,14 +1984,14 @@ def __init__(self, parent = None): self.layout.addWidget(QLinkLabel(f"WingetUI:    LGPL v2.1:           https://github.com/martinet101/WinGetUI/blob/main/LICENSE")) self.layout.addWidget(QLabel()) self.layout.addWidget(QLinkLabel(f"PySide6:      LGPLv3:               https://www.gnu.org/licenses/lgpl-3.0.html")) - self.layout.addWidget(QLinkLabel(f"Python3:     {('PSF License')}:       https://docs.python.org/3/license.html#psf-license")) - self.layout.addWidget(QLinkLabel(f"Pywin32:     {('PSF License')}:       https://spdx.org/licenses/PSF-2.0.html")) + self.layout.addWidget(QLinkLabel(f"Python3:     {_('PSF License')}:       https://docs.python.org/3/license.html#psf-license")) + self.layout.addWidget(QLinkLabel(f"Pywin32:     {_('PSF License')}:       https://spdx.org/licenses/PSF-2.0.html")) self.layout.addWidget(QLinkLabel()) - self.layout.addWidget(QLinkLabel(f"Winget:       {('MIT License')}:       https://github.com/microsoft/winget-cli/blob/master/LICENSE")) - self.layout.addWidget(QLinkLabel(f"Scoop:         {('Unlicense')}:           https://github.com/lukesampson/scoop/blob/master/LICENSE")) - self.layout.addWidget(QLinkLabel(f"GSudo:        {('MIT License')}:       https://github.com/gerardog/gsudo/blob/master/LICENSE.txt")) + self.layout.addWidget(QLinkLabel(f"Winget:       {_('MIT License')}:       https://github.com/microsoft/winget-cli/blob/master/LICENSE")) + self.layout.addWidget(QLinkLabel(f"Scoop:         {_('Unlicense')}:           https://github.com/lukesampson/scoop/blob/master/LICENSE")) + self.layout.addWidget(QLinkLabel(f"GSudo:        {_('MIT License')}:       https://github.com/gerardog/gsudo/blob/master/LICENSE.txt")) self.layout.addWidget(QLinkLabel()) - self.layout.addWidget(QLinkLabel(f"{('Icons')}:          {('By Icons8')}:           https://icons8.com")) + self.layout.addWidget(QLinkLabel(f"{_('Icons')}:          {_('By Icons8')}:           https://icons8.com")) self.layout.addWidget(QLinkLabel()) self.layout.addWidget(QLinkLabel()) button = QPushButton(_("About Qt6")) From fdd9ef8276d54da3a3e6ab690a64e65a142f0bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20M=C3=B6sner?= Date: Sat, 17 Dec 2022 12:27:45 +0100 Subject: [PATCH 2/2] Fix show version, if is greater than --- wingetui/wingetHelpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wingetui/wingetHelpers.py b/wingetui/wingetHelpers.py index da5fdc2926..9c58831b73 100644 --- a/wingetui/wingetHelpers.py +++ b/wingetui/wingetHelpers.py @@ -158,7 +158,7 @@ def searchForUpdates(signal: Signal, finishSignal: Signal, noretry: bool = False id = verElement.split(" ")[iOffset+0] newver = verElement.split(" ")[iOffset+2] ver = verElement.split(" ")[iOffset+1] - if ver.strip() in ("<", "-"): + if ver.strip() in ("<", ">", "-"): iOffset += 1 ver = verElement.split(" ")[iOffset+1] newver = verElement.split(" ")[iOffset+2]