From 18fa0b1acef450ab5f67f8bac331253f2c0d6da2 Mon Sep 17 00:00:00 2001 From: Gmanon Date: Tue, 3 Jan 2023 03:10:48 -0300 Subject: [PATCH] May fix the escaped quotes not being replaced on the applier --- Auto Trans/Translator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Auto Trans/Translator.py b/Auto Trans/Translator.py index 93b1b96..f28480b 100644 --- a/Auto Trans/Translator.py +++ b/Auto Trans/Translator.py @@ -87,6 +87,6 @@ with open('original.csv', 'r', encoding='utf-8') as input_file, \ print(f'{Fore.RED}Original: {Fore.RESET}{row[0]} | {Fore.GREEN}Translation: {Fore.RESET}{translation}{" "*10}\n{Fore.CYAN}Estimated time remaining: {str(time_remaining).split(".")[0]} {Fore.YELLOW}({i}/{length})', end="\r") - writer.writerow([row[0], translation]) + writer.writerow([row[0].replace('"',r'\"'), translation]) print(f"\n\n{Fore.YELLOW}FINISHED")