From 72d7876f3acb04e1cd385b58e3c04735f27213c1 Mon Sep 17 00:00:00 2001 From: ppvnf <73800734+ppvnf@users.noreply.github.com> Date: Thu, 13 Oct 2022 22:29:52 -0300 Subject: [PATCH] 2 CHANGES. READ DETAIL Capitalize "V" and "T" in Latest version and Installer type --- wingetui/storeEngine.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/wingetui/storeEngine.py b/wingetui/storeEngine.py index e917f0f9e..9a4548366 100644 --- a/wingetui/storeEngine.py +++ b/wingetui/storeEngine.py @@ -620,23 +620,23 @@ def __init__(self, parent = None): self.manifest = QLinkLabel(_('Manifest:')+" "+_('Unknown')) self.manifest.setWordWrap(True) self.layout.addWidget(self.manifest) - self.lastver = QLinkLabel(_('Latest version:')+" "+_('Unknown')) + self.lastver = QLinkLabel(_('Latest Version:')+" "+_('Unknown')) self.lastver.setWordWrap(True) self.layout.addWidget(self.lastver) - self.sha = QLinkLabel(_('Installer SHA256 (Latest version):')+" "+_('Unknown')) + self.sha = QLinkLabel(_('Installer SHA256 (Latest Version):')+" "+_('Unknown')) self.sha.setWordWrap(True) self.layout.addWidget(self.sha) - self.link = QLinkLabel(_('Installer URL (Latest version):')+" "+_('Unknown')) + self.link = QLinkLabel(_('Installer URL (Latest Version):')+" "+_('Unknown')) self.link.setWordWrap(True) self.layout.addWidget(self.link) - self.type = QLinkLabel(_('Installer type (Latest version):')+" "+_('Unknown')) + self.type = QLinkLabel(_('Installer Type (Latest Version):')+" "+_('Unknown')) self.type.setWordWrap(True) self.layout.addWidget(self.type) self.storeLabel = QLinkLabel(f"Source: {self.store}") self.storeLabel.setWordWrap(True) self.layout.addWidget(self.storeLabel) self.layout.addStretch() - self.advert = QLinkLabel(_("DISCLAIMER: NEITHER MICROSOFT NOR THE CREATORS OF WINGETUI ARE RESPONSIBLE FOR THE DOWNLOADED SOFTWARE.")) + self.advert = QLinkLabel(_("DISCLAIMER: NEITHER MICROSOFT NOR THE CREATORS OF WINGETUI ARE RESPONSIBLE FOR THE DOWNLOADED APPS.")) self.advert.setWordWrap(True) self.layout.addWidget(self.advert) @@ -729,10 +729,10 @@ def loadProgram(self, title: str, id: str, useId: bool, store: str, update: bool self.publisher.setText(f"{_('Publisher')}: "+_("Loading...")) self.homepage.setText(f"{_('Homepage')}: {_('Loading...')}") self.license.setText(f"{_('License')}: {_('Loading...')} ({_('Loading...')})") - self.lastver.setText(f"{_('Latest version')}: {_('Loading...')}") - self.sha.setText(f"{_('Installer SHA256')} ({_('Latest version')}): {_('Loading...')}") - self.link.setText(f"{_('Installer URL')} ({_('Latest version')}): {_('Loading...')}") - self.type.setText(f"{_('Installer type')} ({_('Latest version')}): {_('Loading...')}") + self.lastver.setText(f"{_('Latest Version')}: {_('Loading...')}") + self.sha.setText(f"{_('Installer SHA256')} ({_('Latest Version')}): {_('Loading...')}") + self.link.setText(f"{_('Installer URL')} ({_('Latest Version')}): {_('Loading...')}") + self.type.setText(f"{_('Installer Type')} ({_('Latest Version')}): {_('Loading...')}") self.packageId.setText(f"{_('Package ID')}: {_('Loading...')}") self.manifest.setText(f"{_('Manifest')}: {_('Loading...')}") self.storeLabel.setText(f"{_('Source')}: {self.store.capitalize()}") @@ -765,12 +765,12 @@ def printData(self, appInfo: dict) -> None: self.homepage.setText(f"{_('Homepage')}: {appInfo['homepage']}") self.license.setText(f"{_('License')}: {appInfo['license']} ({appInfo['license-url']})") try: - self.lastver.setText(f"{_('Latest version')}: {appInfo['versions'][0]}") + self.lastver.setText(f"{_('Latest Version')}: {appInfo['versions'][0]}") except IndexError: - self.lastver.setText(_('Latest version:')+" "+_('Unknown')) - self.sha.setText(f"{_('Installer SHA256')} ({_('Latest version')}): {appInfo['installer-sha256']}") - self.link.setText(f"{_('Installer URL')} ({_('Latest version')}): {appInfo['installer-url']}") - self.type.setText(f"{_('Installer type')} ({_('Latest version')}): {appInfo['installer-type']}") + self.lastver.setText(_('Latest Version:')+" "+_('Unknown')) + self.sha.setText(f"{_('Installer SHA256')} ({_('Latest Version')}): {appInfo['installer-sha256']}") + self.link.setText(f"{_('Installer URL')} ({_('Latest Version')}): {appInfo['installer-url']}") + self.type.setText(f"{_('Installer Type')} ({_('Latest Version')}): {appInfo['installer-type']}") self.packageId.setText(f"{_('Package ID')}: {appInfo['id']}") self.manifest.setText(f"{_('Manifest')}: {appInfo['manifest']}") while self.versionCombo.count()>0: