From cddc1faf0c710ceed32b37d4a2753c8c6d79f5fb Mon Sep 17 00:00:00 2001 From: pedronovaes <73800734+ppvnf@users.noreply.github.com> Date: Fri, 28 Apr 2023 23:37:40 +0200 Subject: [PATCH] Rename 'release notes' to just 'notes' (scoop) --- wingetui/storeEngine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wingetui/storeEngine.py b/wingetui/storeEngine.py index f4ae89c44..9bedecae1 100644 --- a/wingetui/storeEngine.py +++ b/wingetui/storeEngine.py @@ -1243,7 +1243,7 @@ def loadProgram(self, title: str, id: str, useId: bool, store: str, update: bool self.packageId.setText(f"{_('Package ID')}: {id}") self.manifest.setText(f"{_('Manifest')}: {_('Loading...')}") self.date.setText(f"{_('Last updated:')} {_('Loading...')}") - self.notes.setText(f"{_('Release notes:')} {_('Loading...')}") + self.notes.setText(f"{_('Notes:') if 'scoop' in self.store.lower() else _('Release notes:')} {_('Loading...')}") self.notesurl.setText(f"{_('Release notes URL:')} {_('Loading...')}") self.storeLabel.setText(f"{_('Source')}: {self.store.capitalize()}") self.versionCombo.addItems([_("Loading...")]) @@ -1305,7 +1305,7 @@ def printData(self, packageDetails: dict, progId) -> None: self.type.setText(f"{_('Installer Type')} ({_('Latest Version')}): {packageDetails['installer-type']}") self.packageId.setText(f"{_('Package ID')}: {packageDetails['id']}") self.date.setText(f"{_('Last updated:')} {packageDetails['updatedate']}") - self.notes.setText(f"{_('Release notes:')} {packageDetails['releasenotes'].replace(r'%bluecolor%', blueColor)}") + self.notes.setText(f"{_('Notes:') if 'scoop' in self.store.lower() else _('Release notes:')} {packageDetails['releasenotes'].replace(r'%bluecolor%', blueColor)}") self.notesurl.setText(f"{_('Release notes URL:')} {packageDetails['releasenotesurl'].replace(r'%bluecolor%', blueColor)}") self.manifest.setText(f"{_('Manifest')}: {packageDetails['manifest']}") while self.versionCombo.count()>0: