Polyglot icon indicating copy to clipboard operation
Polyglot copied to clipboard

Unable to translate on the github website when opening an external link

Open Oleg-Chashko opened this issue 3 years ago • 7 comments

Under certain conditions, it hangs while waiting for the translation of the text. This happens when the link is opened from the desktop. It seems that this behavior appeared after the last update of the application.

  • Safari v.14.1 (16611.1.21.161.6)
  • Polyglot v.3.4

Example

https://user-images.githubusercontent.com/62497891/117031536-f52e7580-ad00-11eb-938e-ba146fe5b90c.mp4

Example Link (https://github.com/AdguardTeam/AdguardBrowserExtension/issues/1799#issuecomment-831965307) Example ZIP view it on GitHub.zip

Oleg-Chashko avatar May 04 '21 15:05 Oleg-Chashko

This looks like API limit has been reached. Google Translate only lets you translate a certain number of times over a period of time.

Wait and try again later? See #55

gingerbeardman avatar May 04 '21 23:05 gingerbeardman

This looks like API limit has been reached. Google Translate only lets you translate a certain number of times over a period of time.

Wait and try again later? See #55

Unfortunately not, I think there is another problem here.

As an example, not one translation has been made today. The link is open from Apple-mail, the first translation for today immediately causes a problem. And if you translate into a direct site, there is no problem. To read, I very rarely use the application. So I do not exceed the limit. And as I wrote above that I did not have this problem before. P.S. the latest update hasn't benefited the app.

Example

https://user-images.githubusercontent.com/62497891/117108819-08cef000-ad84-11eb-9596-0c655088fb9b.mp4

Oleg-Chashko avatar May 05 '21 07:05 Oleg-Chashko

Do you see any errors in web inspector console?

gingerbeardman avatar May 05 '21 12:05 gingerbeardman

Do you see any errors in web inspector console?

https://user-images.githubusercontent.com/62497891/117142553-2154ff80-adb0-11eb-9ca0-aa9f61d6c92e.mp4

Oleg-Chashko avatar May 05 '21 12:05 Oleg-Chashko

Found what this problem is related to. When you run the link. The window in which you want to translate is highlighted in blue. There will be no translation! If you click on a page of the website, the translation will be done. This is due to the structure of this website. This problem was not found on other Internet sites.

Bildschirmfoto 2021-05-05 um 15 21 55

Example

https://user-images.githubusercontent.com/62497891/117150002-0be3d380-adb8-11eb-9602-4e97e0078026.mp4

Oleg-Chashko avatar May 05 '21 13:05 Oleg-Chashko

Good find! Please edit/change the bug report accordingly.

gingerbeardman avatar May 05 '21 13:05 gingerbeardman

Good find! Please edit/change the bug report accordingly.

Always happy to help!

Oleg-Chashko avatar May 05 '21 13:05 Oleg-Chashko