又加了一点点翻译

This commit is contained in:
gfdgd xi 2022-06-18 23:01:23 +08:00
parent da0db9b0fb
commit b851b12a62
2 changed files with 19 additions and 9 deletions

View File

@ -20,7 +20,12 @@
"ChooseApkError": "你没有选择 apk 文件",
"SaveApkIconError": "本程序不支持保存该 apk 的图标",
"PathError": "路径不存在,请重试!",
"SettingReadError": "读取设置错误!无法打开设置窗口!"
"SettingReadError": "读取设置错误!无法打开设置窗口!",
"SettingSaveError": "保存设置错误!",
"ConnectServerError": "无法连接服务器!",
"ConnectServerStarError": "无法连接服务器!无法进行评分!",
"ApkFileError": "该应用安装包异常,无法查询相关数据!",
"InputDataError": "你输入的数值不正确!"
},
"Menu": [
{
@ -167,7 +172,12 @@
"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",
"SettingReadError": "Read user setting error! Can't to continue to set!"
"SettingReadError": "Read user setting error! Can't to continue to set!",
"SettingSaveError": "Setting can't save",
"ConnectServerError": "Can't connect the cloud server!",
"ConnectServerStarError": "Can't connect the cloud server! So can't give star for the app!",
"ApkFileError": "This apk file is error and can't find any data about the apk file!",
"InputDataError": "Your input error data!"
},
"Menu": [
{

14
main.py
View File

@ -690,7 +690,7 @@ class SettingWindow():
write_txt(get_home() + "/.config/uengine-runner/setting.json", json.dumps({"SaveApk": bool(SettingWindow.saveApkOption.get())}))
except:
traceback.print_exc()
messagebox.showerror(title="错误", message="保存设置错误!")
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["SettingSaveError"])
return
messagebox.showinfo(title="提示", message="设置保存完毕!")
@ -716,8 +716,7 @@ class UpdateWindow():
updateText.insert("0.0", UpdateWindow.data["New"].replace("\\n", "\n"))
except:
traceback.print_exc()
messagebox.showerror(title="错误", message="无法连接服务器!")
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["ConnectServerError"])
updateText.configure(state=tk.DISABLED)
versionLabel.pack(anchor=tk.W)
updateText.pack()
@ -757,7 +756,7 @@ class ApkInformation():
path = ComboInstallPath.get()
package = GetApkPackageName(path)
if package == None or package == "":
messagebox.showerror(title="错误", message="该应用安装包异常,无法查询相关数据!")
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["ApkFileError"])
return
message = tk.Toplevel()
message.title("{}“的Apk信息".format(GetApkChineseLabel(path)))
@ -822,12 +821,13 @@ Activity{}
try:
messagebox.showinfo(title="提示", message=requests.post("http://120.25.153.144/uengine-runner/app/check/add.php", {"Package": GetApkPackageName(path), "Type": choose}).text)
except:
messagebox.showerror(title="错误", message="无法连接服务器!无法进行评分!")
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["ConnectServerStarError"])
def ShowMap():
package = GetApkPackageName(path)
if package == None or package == "":
messagebox.showerror(title="错误", message="该应用安装包异常,无法查询相关数据!")
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["ApkFileError"])
return
try:
data = json.loads(requests.get("http://120.25.153.144/uengine-runner/app/check/" + package +"/data.json").text)
@ -905,7 +905,7 @@ class AdbChangeUengineDisplaySize():
int(displayX.get())
int(displayY.get())
except:
messagebox.showerror(title="错误", message="你输入的数值不正确!")
messagebox.showerror(title="错误", message=langFile[lang]["Main"]["MainWindow"]["Error"]["InputDataError"])
return
os.system("adb -s '192.168.250.2:5555' shell wm size {}x{}".format(displayX.get(), displayY.get()))
AdbChangeUengineDisplaySize.GetUengineDisplaySize()