uetchy/Polyglot

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

Oleg-Chashko opened this issue · 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

Screen_1.mp4

Example Link
(AdguardTeam/AdguardBrowserExtension#1799 (comment))
Example ZIP
view it on GitHub.zip

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

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

Screen_2.mp4

Do you see any errors in web inspector console?

Do you see any errors in web inspector console?

Screen_3.mp4

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

Screen_4.mp4

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

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

Always happy to help!