Only show debug info sometimes
This commit is contained in:
parent
8aa2fc6a3a
commit
9f279bccc9
19
src/orig.py
19
src/orig.py
|
@ -85,12 +85,6 @@ def write_translated(outfile, origfile, translation_file_paths):
|
|||
# --- Debug ---
|
||||
global debug_current_line
|
||||
debug_current_line += 1
|
||||
print(
|
||||
"\n-",
|
||||
debug_current_line,
|
||||
transfilepath,
|
||||
''.join(str(x) for x in tokens),
|
||||
)
|
||||
# -------------
|
||||
|
||||
# Replace the text tokens with the translated ones
|
||||
|
@ -101,9 +95,16 @@ def write_translated(outfile, origfile, translation_file_paths):
|
|||
outfile.write('`' + unidecode(line_en) + '\n')
|
||||
|
||||
# --- Debug ---
|
||||
print(">", line_en)
|
||||
print(">", line_jp)
|
||||
print("<", line, end='')
|
||||
if lines_written > 0:
|
||||
print(
|
||||
"\n-",
|
||||
debug_current_line,
|
||||
transfilepath,
|
||||
''.join(str(x) for x in tokens),
|
||||
)
|
||||
print(">", line_en)
|
||||
print(">", line_jp)
|
||||
print("<", line, end='')
|
||||
# -------------
|
||||
|
||||
if line_jp+'\n' != line:
|
||||
|
|
Loading…
Reference in New Issue