mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-14 02:52:03 +08:00
更新翻译
This commit is contained in:
@@ -6,6 +6,7 @@ import traceback
|
||||
|
||||
class Trans():
|
||||
isTrans = False
|
||||
unCloudTrans = True
|
||||
word = {}
|
||||
fileName = ""
|
||||
|
||||
@@ -29,6 +30,8 @@ class Trans():
|
||||
try:
|
||||
return self.word[text]
|
||||
except:
|
||||
if self.unCloudTrans:
|
||||
return text
|
||||
# 机翻
|
||||
data = { 'doctype': 'json', 'type': 'auto','i': text}
|
||||
jsonReturn = requests.post("http://fanyi.youdao.com/translate", data=data).json()["translateResult"]
|
||||
|
||||
1
trans/deepin-wine-runner-qemu-download.json
Normal file
1
trans/deepin-wine-runner-qemu-download.json
Normal file
@@ -0,0 +1 @@
|
||||
{"更换源": "Change the source", "Gitlink 源(推荐)": "Gitlink source (recommended)", "备用源(只支持 IPv6 用户)": "The alternate source (only support IPv6 users)", "本地测试源(127.0.0.1)": "Local test source (127.0.0.1)"}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user