修复多语言
This commit is contained in:
parent
016a3f81a0
commit
a4c229b482
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 "麒麟更新器卸载软件包需要认证"
|
||||
|
||||
|
|
Loading…
Reference in New Issue