Fix for text.py
This commit is contained in:
parent
7ce2b309f5
commit
d73668b913
2 changed files with 4 additions and 4 deletions
|
|
@ -213,8 +213,8 @@ def translateRegex(data, filename, translatedList):
|
|||
|
||||
while i < len(data):
|
||||
voice = False
|
||||
lineRegexText = r'"profile": "(.*)"'
|
||||
lineRegexSpeaker = r"◆A.+?◆(.+)"
|
||||
lineRegexText = r'●(?:「| |()(.+?)(?:[」)]|$)'
|
||||
lineRegexSpeaker = r"●.+●([^ 「(].+)"
|
||||
choiceRegex = r"\$menu_item.+?,(.*?),"
|
||||
titleRegex = r"title\s'(.*)'$"
|
||||
speaker = ""
|
||||
|
|
@ -376,7 +376,7 @@ def translateRegex(data, filename, translatedList):
|
|||
MISMATCH.append(FILENAME)
|
||||
|
||||
# Set Strings
|
||||
translateRegex(data, filename, [stringListTL, choiceListTL])
|
||||
translateRegex(data, filename, [stringListTL, choiceListTL])
|
||||
return tokens
|
||||
|
||||
# Save some money and enter the character before translation
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@ def translateTxt(data, filename, translatedList):
|
|||
MISMATCH.append(FILENAME)
|
||||
|
||||
# Set Strings
|
||||
translateTxt(data, filename, [stringListTL, choiceListTL])
|
||||
translateTxt(data, filename, [stringListTL, choiceListTL])
|
||||
return tokens
|
||||
|
||||
# Save some money and enter the character before translation
|
||||
|
|
|
|||
Loading…
Reference in a new issue