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));