From 007c439443e832019e8af5e0ad9e34a7531e36b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Wed, 31 Jan 2024 08:25:30 +0800 Subject: [PATCH] fix --- .../LunaTranslator/gui/pretransfile.py | 16 ++++++++-------- .../files/defaultconfig/static_data.json | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/pretransfile.py b/LunaTranslator/LunaTranslator/gui/pretransfile.py index 61c7fe67..051c4d9c 100644 --- a/LunaTranslator/LunaTranslator/gui/pretransfile.py +++ b/LunaTranslator/LunaTranslator/gui/pretransfile.py @@ -29,15 +29,15 @@ def sqlite2json(self): _id,source,mt =_aret js[source]={'userTrans':'','machineTrans':''} js_format2[source]='' - mtjs=json.loads(mt) - for _i,_t in enumerate(mtjs): - if _i==0 : - js[source]['machineTrans']=mtjs[_t] - js_format2[source]=mtjs[_t] - js[source]['result_'+str(_i)]=mtjs[_t] - js[source]['api_'+str(_i)]=_t + mtjs=json.loads(mt) + for _i,_t in enumerate(mtjs): + if _i==0 : + js[source]['machineTrans']=mtjs[_t] + js_format2[source]=mtjs[_t] + js[source]['result_'+str(_i)]=mtjs[_t] + js[source]['api_'+str(_i)]=_t - collect[_t]='result_'+str(_i) + collect[_t]='result_'+str(_i) except: print_exc() diff --git a/LunaTranslator/files/defaultconfig/static_data.json b/LunaTranslator/files/defaultconfig/static_data.json index c058c7d9..96a0b5a4 100644 --- a/LunaTranslator/files/defaultconfig/static_data.json +++ b/LunaTranslator/files/defaultconfig/static_data.json @@ -1,5 +1,5 @@ { - "version":"v2.36.2", + "version":"v2.36.3", "language_list_show":["简体中文","日本語","English","Русский язык","Español","한국어","Français","繁體中文","Tiếng Việt","Türkçe","Polski","Українська Мова","Italiano","اللغة العربية","ภาษาไทย"] , "language_list_translator":["简体中文","日文","英文","俄语","西班牙语","韩语","法语","繁体中文","越南语","土耳其语","波兰语","乌克兰语","意大利语","阿拉伯语","泰语"], "language_list_translator_inner":["zh", "ja", "en","ru","es","ko","fr","cht","vi","tr","pl","uk","it","ar","th"],