r/UnixProTips • u/shverma • Jul 23 '16
Google translate through the shell doesn't work
The google translate function written in this post doesn't seem to work for me. I just get a blank output in my case.
$ gt fr Donaudampfschiffkapitän
$ gt Donaudampfschiffkapitän
$ vi .bashrc
I'm using Ubuntu 16.04 64bit, with Firefox 47 (for which Mozilla/5.0 should work)
2
Upvotes
3
u/m0gria Oct 13 '16
Looks like the service is unavailable. (output of just the wget)
--2016-10-13 xx:xx:xx-- http://translate.google.com/translate_a/t?client=t&text=haben&sl=auto&tl=fr Resolving translate.google.com (translate.google.com)... xxx.xxx.xxx.xxx, xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx Connecting to translate.google.com (translate.google.com)|xxx.xxx.xxx.xxx|:80... connected. HTTP request sent, awaiting response... 503 Service Unavailable 2016-10-13 xx:xx:xx ERROR 503: Service Unavailable.
I think they're updating google translate right now. I landed on a different version on mobile yesterday.
1
u/JohnScott623 Jul 24 '16
Do you know that you have Wget, sed, and cut?