From 70bc904cee1d272dfbd441785f17cf1ad4ec0429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hans=20P=2E=20M=C3=B6ller?= Date: Sat, 7 Nov 2020 10:57:33 -0300 Subject: [PATCH] added number of security upgrades text --- lubuntu-notifier.py | 6 ++++++ po/es.po | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/lubuntu-notifier.py b/lubuntu-notifier.py index f375086..0793084 100755 --- a/lubuntu-notifier.py +++ b/lubuntu-notifier.py @@ -119,6 +119,12 @@ class Dialog(QWidget): text += "\n" text += _("This will mean packages could be upgraded, installed or" " removed.") + if self.security_upgrades > 0: + text += "\n" + str(self.security_upgrades) + if self.security_upgrades == 1: + text += _(" is a security upgrade.") + else: + text += _(" are security upgrades.") if len(pkg_delete) > 0: toDelete = QTreeWidgetItem([_('Remove')]) diff --git a/po/es.po b/po/es.po index 199ffb0..eccc232 100644 --- a/po/es.po +++ b/po/es.po @@ -85,7 +85,15 @@ msgstr "" msgid "This will mean packages could be upgraded, installed or removed." msgstr "Esto implica que paquetes pueden actualizarse, instalarse o removerse." -#: lubuntu-notifier.py:109 +#: lubuntu-notifier.py:125 +msgid " is a security upgrade." +msgstr " es una actualizaciĆ³n de seguridad." + +#: lubuntu-notifier.py:127 +msgid " are security upgrades." +msgstr " son actualizaciones de seguridad." + +#: lubuntu-notifier.py:127 msgid "Remove" msgstr "Quitar"