Fixes and shieet

This commit is contained in:
2022-12-29 03:36:36 -03:00
parent 8263d09052
commit 80fba5c0e7
2 changed files with 6 additions and 13 deletions

View File

@ -85,7 +85,7 @@ with open('original.csv', 'r', encoding='utf-8') as input_file, \
# Calculate the estimated time remaining to translate the whole file
time_remaining = avrg(times) * (length - i)
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]}', end="\r")
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])