Closed matheusfillipe closed 4 years ago
I have had the same problem; Turns out, Google starts blocking your requests when you send them too many. Where "too many" seems to be a rather small number..
I think I sent something like 25 requests before getting blocked. This is kinda sad.
I have had the same problem
my solution is trans Hello -e bing
change google translate for bing translate
For Ubuntu ❰xubuntu 18.04❱:
1) sudo apt install proxychains4
2) cat /etc/proxychains4.conf ❰socks4 127.0.0.1 9050 ❨defaults set to "tor"❩❱
3) sudo add-apt-repository ppa:micahflee/ppa ‖ sudo apt update ‖ sudo apt install torbrowser-launcher
4) proxychains4 trans -shell fr:en
It works for me… 2020 Jul 14; 06:50 PM
For Ubuntu ❰xubuntu 18.04❱:
1. `sudo apt install proxychains4` 2. `cat /etc/proxychains4.conf ❰socks4 127.0.0.1 9050 ❨defaults set to "tor"❩❱` 3. `sudo add-apt-repository ppa:micahflee/ppa ‖ sudo apt update ‖ sudo apt install torbrowser-launcher` 4. `proxychains4 trans -shell fr:en` It works for me… 2020 Jul 14; 06:50 PM
Oh, nice idea. Probably just installing torsocks and doing:
torsocks trans batata
Is an easier/lazier solution. Just worked for me.
I have had the same problem
my solution is
trans Hello -e bing
change google translate for bing translate
Also a good solution. I am closing this since this is really most likely google blocking the requests and not necessarily an issue with trans. Also the workarounds work so.. yeah.
Trans also returns empty line when using torsocks.
Oh, nice idea. Probably just installing torsocks and doing:
torsocks trans batata
Is an easier/lazier solution. Just worked for me.
These work (produces the expected translation behavior):
trans :en 'phrase to translate'
trans :en file://file.txt
These do not work (these only produce blanks):
torsocks trans :en 'phrase to translate'
torsocks trans :en file://file.txt
This is probably more of a torsocks problem, admittedly. But there may be something in your configuration that may help me achieve the same result you had. Thanks
Worked for a while then suddenly does not produce any output: