soimort / translate-shell

:speech_balloon: Command-line translator using Google Translate, Bing Translator, Yandex.Translate, etc.
https://www.soimort.org/translate-shell
The Unlicense
6.92k stars 389 forks source link

translate-shell freezes after translating a file #334

Open vistad opened 4 years ago

vistad commented 4 years ago

Hello, I am on Linux Mint Mate 19.3 using bash terminal. translate-shell is a great app, but it freezes after translating a file. If I want to translate the 2nd file, I can see its cursor waiting a little - then moving down a line, then again waiting a little - then moving down a line - as if it sends the text to the server and writes it out - but it does not write anything. I tried to write the translation to a file with ">> filename" command - and it delimited lines, but did not write anything. Enclosed is a terminal recording done with ttyrec package.

ttyrecord.zip

soimort commented 4 years ago

I can't look into such an issue if I can't reproduce it on my machine -- instead of the terminal recording, please present

1) The exact commands you are using in each step. 2) The files that can be used to reproduce the issue.

However, from your description, it seems trans is still moving forward without producing any actual translation, then it is not freezing. It's most likely because Google is blocking requests from your IP address for overusing its service. This usually happens when you're translating a large file.

vistad commented 4 years ago

Hello Mort Yao, thank you for your response. It indeed looks to me like Google is limiting requests to translation API. It looks like it limits those for an hour - after that it starts working again. I don't know if it depends on amount of requests per hour or the file size. I had a file of 52kb split it into 8 chapters, and I translated it per chapter.

Best, Victor

On Sat, Jan 25, 2020 at 12:12 AM Mort Yao notifications@github.com wrote:

I can't look into such an issue if I can't reproduce it on my machine -- instead of the terminal recording, please present

  1. The exact commands you are using in each step.
  2. The files that can be used to reproduce the issue.

However, from your description, it seems trans is still moving forward without producing any actual translation, then it is not freezing. It's most likely because Google is blocking requests from your IP address for overusing its service. This usually happens when you're translating a large file.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/soimort/translate-shell/issues/334?email_source=notifications&email_token=ABWAM5SBLUTBTCPGTX6NKGDQ7NKVRA5CNFSM4KLJILJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ4DR6Q#issuecomment-578304250, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWAM5QEJWVIQ4TE4V4B3WTQ7NKVRANCNFSM4KLJILJQ .