更新添加词条,关于自我升级

This commit is contained in:
wangsong 2021-11-29 11:06:33 +08:00
parent 9fedcaf6f6
commit 6cca6df1bb
2 changed files with 6 additions and 2 deletions

View File

@ -392,7 +392,8 @@ class InstallBackend():
else:
#当单包升级的时候 升级本身时,让程序退出,再重新启动
if self.window_main.SELF_PKG_NAME in self.cache and self.cache[self.window_main.SELF_PKG_NAME] in self.cache.get_changes():
self.window_main.dbusController.DistUpdateDetectFinished(False,[self.window_main.SELF_PKG_NAME],"更新管理器升级完成,请重启控制面板后再进行系统更新",error_desc)
error_string = _("Update Manager upgrade is complete, please restart the control panel before performing the system update")
self.window_main.dbusController.DistUpdateDetectFinished(False,[self.window_main.SELF_PKG_NAME],error_string,error_desc)
self.window_main.dbusController.Quit(None)
else:
#只有安装配置文件包 才会走到此处

View File

@ -2618,4 +2618,7 @@ msgstr "但是 %s 已经安装"
#: ../aptdaemon/worker/aptworker.py:1419
#, python-format
msgid "but %s is to be installed"
msgstr "但是将要安装 %s"
msgstr "但是将要安装 %s"
msgid "Update Manager upgrade is complete, please restart the control panel before performing the system update"
msgstr "更新管理器升级完成,请重启控制面板后再进行系统更新"