From a4c229b482f7d294b66dcc24619b81ab15ef45d1 Mon Sep 17 00:00:00 2001 From: Xueyi Luo Date: Mon, 16 May 2022 16:37:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E8=AF=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/SystemUpdater/UpdateManager.py | 2 +- backend/SystemUpdater/UpdateManagerDbus.py | 2 +- backend/po/zh_CN.po | 12 ++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/backend/SystemUpdater/UpdateManager.py b/backend/SystemUpdater/UpdateManager.py index 10166a4..8af091b 100644 --- a/backend/SystemUpdater/UpdateManager.py +++ b/backend/SystemUpdater/UpdateManager.py @@ -436,7 +436,7 @@ class UpdateManager(): return # 验签提权 if deb_verify(deb_path) != 0: #验签失败,提权 - (status,error_string) = PolicyKit_Authority(_("Kylin System Updater Will Install pkgs."),sender) + (status,error_string) = PolicyKit_Authority(_("Kylin System Updater requires authentication to install software packages."),sender) if not status: self.dbusController.InstalldebFinished(False,error_string,'') return diff --git a/backend/SystemUpdater/UpdateManagerDbus.py b/backend/SystemUpdater/UpdateManagerDbus.py index 04ae5c6..f96a2a7 100755 --- a/backend/SystemUpdater/UpdateManagerDbus.py +++ b/backend/SystemUpdater/UpdateManagerDbus.py @@ -351,7 +351,7 @@ class UpdateManagerDbusController(dbus.service.Object): @dbus.service.method(UPDATER_DBUS_INTERFACE,in_signature='ass',out_signature='bs',sender_keyword='sender') def PurgePackages(self,_purge_list,cur_user,sender=None): try: - (status, details) = PolicyKit_Authority(_("Kylin Installer need to uninstall the package"), sender) + (status, details) = PolicyKit_Authority(_("Kylin System Updater requires authentication to uninstall software packages."), sender) if not status: self.PurgePackagesFinished(False,details,'') return False,details diff --git a/backend/po/zh_CN.po b/backend/po/zh_CN.po index e9ad3e2..23e2fba 100644 --- a/backend/po/zh_CN.po +++ b/backend/po/zh_CN.po @@ -2674,3 +2674,15 @@ msgstr "但是 %s 已经安装" msgid "but %s is to be installed" msgstr "但是将要安装 %s" +#. 验签提权 +#. 验签失败,提权 +#: ../SystemUpdater/UpdateManager.py:230 +msgid "" +"Kylin System Updater requires authentication to install software packages." +msgstr "麒麟更新器安装软件包需要认证" + +#: ../SystemUpdater/UpdateManagerDbus.py:421 +msgid "" +"Kylin System Updater requires authentication to uninstall software packages." +msgstr "麒麟更新器卸载软件包需要认证" +