johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
6.42k stars 295 forks source link

Issue with integrated translation service #1394

Closed ralxxx closed 2 months ago

ralxxx commented 2 months ago

Describe the bug Foliate allows to select bits of text and translate it (with the help of Google Translate). When a target language different as the preselected one is chosen, there is an issue with Foliate's behavior.

To Reproduce Steps to reproduce the behavior:

  1. Go to any epub book
  2. Click on a random text string an click the right mouse button
  3. select 'translate' (now the translation for the preselected language - in my case German - is shown) but select another language - I select French)
  4. Now the app is blocked.

Expected behavior The translation feature is aimed to support the user at specific moments. Once the translation is done and the user clicks to text next to the translation windows, the pop-up should vanish in order to continue reading.

Screenshots Bildschirmfoto vom 2024-09-10 15-44-43

Version:

Additional context Add any other context about the problem here.

johnfactotum commented 2 months ago

Duplicate of #1270