mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
bcf49962d9
commit
a913314951
@ -40,6 +40,14 @@ class commonbase:
|
||||
except:
|
||||
return ""
|
||||
|
||||
@property
|
||||
def srclang_1(self):
|
||||
try:
|
||||
l = getlangsrc()
|
||||
return l
|
||||
except:
|
||||
return ""
|
||||
|
||||
@property
|
||||
def tgtlang(self):
|
||||
try:
|
||||
|
@ -21,7 +21,7 @@ class baseocr(commonbase):
|
||||
def space(self):
|
||||
if globalconfig["ocrmergelines"] == False:
|
||||
space = "\n"
|
||||
elif self.srclang in ["zh", "ja", "cht"]:
|
||||
elif self.srclang_1 in ["zh", "ja", "cht"]:
|
||||
space = ""
|
||||
else:
|
||||
space = " "
|
||||
|
Loading…
x
Reference in New Issue
Block a user