Uhhh idk
This commit is contained in:
@ -27,6 +27,9 @@ def parse(lines,cont):
|
|||||||
else:
|
else:
|
||||||
temp_cont.append(line)
|
temp_cont.append(line)
|
||||||
|
|
||||||
|
# We reached the end of the file, dump any dialogue block we had left.
|
||||||
|
cont.append(temp_cont)
|
||||||
|
|
||||||
|
|
||||||
for file in listdir(f"files_old"):
|
for file in listdir(f"files_old"):
|
||||||
|
|
||||||
@ -52,7 +55,7 @@ for file in listdir(f"files_old"):
|
|||||||
for num1,block in enumerate(dialogue_blocks_old):
|
for num1,block in enumerate(dialogue_blocks_old):
|
||||||
for num2,line in enumerate(block):
|
for num2,line in enumerate(block):
|
||||||
if num2 == 0:
|
if num2 == 0:
|
||||||
out_lines.append(dialogue_blocks_new[num1][0])
|
out_lines.append(dialogue_blocks_new[num1][num2])
|
||||||
else:
|
else:
|
||||||
out_lines.append(line)
|
out_lines.append(line)
|
||||||
|
|
||||||
@ -69,7 +72,7 @@ for file in listdir(f"files_old"):
|
|||||||
Translation blocks follow this structure
|
Translation blocks follow this structure
|
||||||
|
|
||||||
#comment
|
#comment
|
||||||
translate lang id:
|
translate lang label_id:
|
||||||
#comment
|
#comment
|
||||||
"Dialogue"
|
"Dialogue"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user