Cleaner debugging
This commit is contained in:
parent
c798453637
commit
b36f7c60f2
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
from unidecode import unidecode
|
||||
|
||||
|
@ -140,13 +141,11 @@ def write_translated(outfile, origfile, translation_file_paths):
|
|||
|
||||
if line_should_be_translated(line):
|
||||
start, symbols = get_symbols(line)
|
||||
print("\n-", debug_current_line, transfilepath, symbols)
|
||||
print("\n-", debug_current_line, transfilepath, [start], symbols)
|
||||
|
||||
outfile.write('`')
|
||||
outfile.write(start)
|
||||
|
||||
print([start])
|
||||
|
||||
_printed_line_jp = start
|
||||
_printed_line_en = start
|
||||
while True:
|
||||
|
@ -171,7 +170,8 @@ def write_translated(outfile, origfile, translation_file_paths):
|
|||
print("<", line, end='')
|
||||
|
||||
if _printed_line_jp+'\n' != line:
|
||||
raise Exception('UGABUNGA')
|
||||
print("UGABUNGA")
|
||||
sys.exit(1)
|
||||
|
||||
# Used up all of the structures, this chapter has ended.
|
||||
# Got to the next one
|
||||
|
|
Loading…
Reference in New Issue