From e3e92a2884ceb635ad0d72d6d416bdad9ac6deef Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Thu, 6 Jan 2022 22:50:07 -0500 Subject: [PATCH] fix bug --- dotfiles-old/bin/translate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles-old/bin/translate b/dotfiles-old/bin/translate index 355fb28..f9af8a6 100755 --- a/dotfiles-old/bin/translate +++ b/dotfiles-old/bin/translate @@ -36,7 +36,7 @@ def usage(name): def main(argc, argv): accepted_languages = set(list(googletrans.LANGCODES) - + list(googletrans.LANGUAGES)); + + list(googletrans.LANGUAGES) + [ "auto" ]); good = True; isatty = stdout.isatty(); translator = googletrans.Translator(); @@ -79,7 +79,7 @@ def main(argc, argv): translation.pronunciation ); else: - printf(stdout, "%s\n", translation.text); + fprintf(stdout, "%s\n", translation.text); return 0; exit(main(len(sys.argv), sys.argv));