mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
Update static_data.json fix
This commit is contained in:
parent
d4a715316c
commit
ef62381dc2
@ -86,7 +86,7 @@ class MAINUI() :
|
|||||||
break
|
break
|
||||||
|
|
||||||
if usedict and key in content:
|
if usedict and key in content:
|
||||||
xx='ZX{}Z'.format(chr(ord("B")+zhanweifu))
|
xx='{{{}}}'.format(zhanweifu)
|
||||||
content=content.replace(key,xx)
|
content=content.replace(key,xx)
|
||||||
mp1[xx]=key
|
mp1[xx]=key
|
||||||
zhanweifu+=1
|
zhanweifu+=1
|
||||||
@ -102,7 +102,7 @@ class MAINUI() :
|
|||||||
# if self.vnrshareddict[key]['src']==self.vnrshareddict[key]['tgt']:
|
# if self.vnrshareddict[key]['src']==self.vnrshareddict[key]['tgt']:
|
||||||
# content=content.replace(key,self.vnrshareddict[key]['text'])
|
# content=content.replace(key,self.vnrshareddict[key]['text'])
|
||||||
# else:
|
# else:
|
||||||
xx='ZX{}Z'.format(chr(ord("B")+zhanweifu))
|
xx='{{{}}}'.format(zhanweifu)
|
||||||
content=content.replace(key,xx)
|
content=content.replace(key,xx)
|
||||||
mp2[xx]=key
|
mp2[xx]=key
|
||||||
zhanweifu+=1
|
zhanweifu+=1
|
||||||
|
@ -153,7 +153,7 @@ class Session(Sessionbase):
|
|||||||
threading.Thread(target=___perform,daemon=True).start()
|
threading.Thread(target=___perform,daemon=True).start()
|
||||||
|
|
||||||
headerb=b''
|
headerb=b''
|
||||||
CLRFnum=1+int(proxy is not None)
|
CLRFnum=1+int(bool((proxy)))
|
||||||
while True:
|
while True:
|
||||||
_headerb=headercqueue.get()
|
_headerb=headercqueue.get()
|
||||||
if _headerb is None:
|
if _headerb is None:
|
||||||
|
@ -238,6 +238,7 @@ class Sessionbase:
|
|||||||
scheme,server,port,param,url=self._parseurl(url,params)
|
scheme,server,port,param,url=self._parseurl(url,params)
|
||||||
headers,dataptr,datalen=self._parsedata(data,headers,json)
|
headers,dataptr,datalen=self._parsedata(data,headers,json)
|
||||||
proxy= proxies.get(scheme,None) if proxies else None
|
proxy= proxies.get(scheme,None) if proxies else None
|
||||||
|
proxy= None if proxy=='' else proxy
|
||||||
if timeout:
|
if timeout:
|
||||||
if isinstance(timeout,(float,int)):
|
if isinstance(timeout,(float,int)):
|
||||||
timeout = int(timeout * 1000) # convert to milliseconds
|
timeout = int(timeout * 1000) # convert to milliseconds
|
||||||
|
@ -70,4 +70,4 @@ class TS(basetrans):
|
|||||||
event=js['data']['event']
|
event=js['data']['event']
|
||||||
if event=='Translating':
|
if event=='Translating':
|
||||||
trans='\n'.join([_['dst'] for _ in js['data']['list']])
|
trans='\n'.join([_['dst'] for _ in js['data']['list']])
|
||||||
return trans
|
yield trans
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version":"v2.40.1",
|
"version":"v2.40.2",
|
||||||
"language_list_show":["简体中文","日本語","English","Русский язык","Español","한국어","Français","繁體中文","Tiếng Việt","Türkçe","Polski","Українська Мова","Italiano","اللغة العربية","ภาษาไทย","བོད་སྐད།"] ,
|
"language_list_show":["简体中文","日本語","English","Русский язык","Español","한국어","Français","繁體中文","Tiếng Việt","Türkçe","Polski","Українська Мова","Italiano","اللغة العربية","ภาษาไทย","བོད་སྐད།"] ,
|
||||||
"language_list_translator":["简体中文","日文","英文","俄语","西班牙语","韩语","法语","繁体中文","越南语","土耳其语","波兰语","乌克兰语","意大利语","阿拉伯语","泰语","藏语"],
|
"language_list_translator":["简体中文","日文","英文","俄语","西班牙语","韩语","法语","繁体中文","越南语","土耳其语","波兰语","乌克兰语","意大利语","阿拉伯语","泰语","藏语"],
|
||||||
"language_list_translator_inner":["zh", "ja", "en","ru","es","ko","fr","cht","vi","tr","pl","uk","it","ar","th","bo"],
|
"language_list_translator_inner":["zh", "ja", "en","ru","es","ko","fr","cht","vi","tr","pl","uk","it","ar","th","bo"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user