Skip to content

Commit

Permalink
2 CHANGES. READ DETAIL
Browse files Browse the repository at this point in the history
Capitalize "V" and "T" in Latest version and Installer type
  • Loading branch information
ppvnf authored Oct 14, 2022
1 parent 46816ad commit 72d7876
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions wingetui/storeEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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')}: <a style=\"color: {blueColor};\" href=\"\">{_('Loading...')}</a>")
self.license.setText(f"{_('License')}: {_('Loading...')} (<a style=\"color: {blueColor};\" href=\"\">{_('Loading...')}</a>)")
self.lastver.setText(f"{_('Latest version')}: {_('Loading...')}")
self.sha.setText(f"{_('Installer SHA256')} ({_('Latest version')}): {_('Loading...')}")
self.link.setText(f"{_('Installer URL')} ({_('Latest version')}): <a style=\"color: {blueColor};\" href=\"\">{_('Loading...')}</a>")
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')}): <a style=\"color: {blueColor};\" href=\"\">{_('Loading...')}</a>")
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()}")
Expand Down Expand Up @@ -765,12 +765,12 @@ def printData(self, appInfo: dict) -> None:
self.homepage.setText(f"{_('Homepage')}: <a style=\"color: {blueColor};\" href=\"{appInfo['homepage']}\">{appInfo['homepage']}</a>")
self.license.setText(f"{_('License')}: {appInfo['license']} (<a style=\"color: {blueColor};\" href=\"{appInfo['license-url']}\">{appInfo['license-url']}</a>)")
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')}): <a style=\"color: {blueColor};\" href=\"{appInfo['installer-url']}\">{appInfo['installer-url']}</a>")
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')}): <a style=\"color: {blueColor};\" href=\"{appInfo['installer-url']}\">{appInfo['installer-url']}</a>")
self.type.setText(f"{_('Installer Type')} ({_('Latest Version')}): {appInfo['installer-type']}")
self.packageId.setText(f"{_('Package ID')}: {appInfo['id']}")
self.manifest.setText(f"{_('Manifest')}: <a style=\"color: {blueColor};\" href=\"file:///"+appInfo['manifest'].replace('\\', '/')+f"\">{appInfo['manifest']}</a>")
while self.versionCombo.count()>0:
Expand Down

0 comments on commit 72d7876

Please sign in to comment.