diff --git a/Language.json b/Language.json index 32e5b29..d2de56c 100644 --- a/Language.json +++ b/Language.json @@ -19,7 +19,8 @@ "BackApkError": "无法还原安装包\n提示:新版UEngine安装后会自动删除安装包,备份的Apk在/tmp/uengine-runner/bak.apk,电脑重启后就会丢失!", "ChooseApkError": "你没有选择 apk 文件", "SaveApkIconError": "本程序不支持保存该 apk 的图标", - "PathError": "路径不存在,请重试!" + "PathError": "路径不存在,请重试!", + "SettingReadError": "读取设置错误!无法打开设置窗口!" }, "Menu": [ { @@ -165,7 +166,8 @@ "BackApkError": "Can't recover the apk\nTips: Newer UEngine will delete the APK installing file when finish install, recover apk is in \"tmp/uengine-runner/bak.apk\", but it will be lose when you restart your computer.", "ChooseApkError": "You don't choose any APK file.", "SaveApkIconError": "This APK file isn't allow to save the icon file.", - "PathError": "Path not found, please try again" + "PathError": "Path not found, please try again", + "SettingReadError": "Read user setting error! Can't to continue to set!" }, "Menu": [ { diff --git a/main.py b/main.py index 65917cc..2e5864d 100755 --- a/main.py +++ b/main.py @@ -674,7 +674,7 @@ class SettingWindow(): try: data = json.loads(readtxt(get_home() + "/.config/uengine-runner/setting.json")) except: - messagebox.showerror(title="错误", message="读取设置错误!无法打开设置窗口!") + messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["SettingReadError"]) setting.destroy() SettingWindow.saveApkOption = tk.IntVar() SettingWindow.saveApkOption.set(int(data["SaveApk"]))