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