增加新词条 增加是否为网络认证的词条

This commit is contained in:
wangsong 2022-03-16 09:04:32 +08:00
parent c22fcfa90b
commit 412897184b
3 changed files with 7 additions and 1 deletions

View File

@ -405,7 +405,8 @@ class InstallBackendAptdaemon(InstallBackend):
if self.action == self.ACTION_REMOVE_PACKAGES:
return
logging.info("\033[1;32m" + "Emitting" + "\033[0m" +" Cancelable: %r",Cancelable)
if self.action != self.ACTION_UPDATE:
logging.info("\033[1;32m" + "Emitting" + "\033[0m" +" Cancelable: %r",Cancelable)
self.window_main.dbusController.Cancelable(Cancelable)
#增加取消信号的频发机制
self.trans_cancelable = Cancelable

View File

@ -484,6 +484,9 @@ class InstallBackend():
elif action == self.ACTION_UPDATE:
if success == False and 'The following signatures' in self.trans_error_details:
error_desc = _("Check your source public key signature")
elif success == False and 'does the network require authentication?' in self.trans_error_details:
error_desc = _("Check if your network requires authentication?")
if success:
#开始生成列表
self.window_main.start_available()

View File

@ -2559,6 +2559,8 @@ msgstr "无法访问源管理服务器,请稍后再试"
msgid "Connection exception with push server"
msgstr "推送服务器连接异常"
msgid "Check if your network requires authentication?"
msgstr "检查您的网络需要认证吗?"
msgid "Check your source public key signature"
msgstr "检查您的源数字签名"