Skip to content
Snippets Groups Projects
Commit 4db252b0 authored by Juuso Rytilahti's avatar Juuso Rytilahti
Browse files

After every chunk is translated, the content of output.md is overwritten

parent 69b70e53
No related branches found
No related tags found
No related merge requests found
...@@ -253,6 +253,9 @@ if file_content: ...@@ -253,6 +253,9 @@ if file_content:
final_text = final_text + trans # exclude the debug text final_text = final_text + trans # exclude the debug text
else: else:
final_text =final_text + chunk_divination + trans final_text =final_text + chunk_divination + trans
# In case the translation fails to an error when only part of the translation is done
# write the currently translated text also to the output.md
write_to_file("output.md", final_text)
print(" ") print(" ")
print(" ") print(" ")
write_to_file("output.md", final_text) write_to_file("output.md", final_text)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment