translate-tools / linguist

Translate web pages, highlighted text, Netflix subtitles, private messages, speak the translated text, and save important translations to your personal dictionary to learn words even offline
https://linguister.io
BSD 3-Clause "New" or "Revised" License
693 stars 23 forks source link

Incorrect translation on Reddit and some websites. #354

Open rsssxd opened 1 year ago

rsssxd commented 1 year ago

When using the Lingva module, some Reddit community names are translated as "Unified" in the Firefox for Android browser. image

vitonsky commented 1 year ago

Thanks for your report, please add some data about your environment, to help me debug the problem.

rsssxd commented 1 year ago

1- Lingva 2- Android 10 DivestOS - Firefox 113 (Mull)

vitonsky commented 1 year ago

@rsssxd where i can find a Lingva translator code? Did you use custom translator with this code https://github.com/translate-tools/linguist-translators/blob/c826016314f5f3f68b69d83b9e3182618b991086/translators/LingvaTranslator.js ?

rsssxd commented 1 year ago

Yes, I used the Lingva interpreter module.

@rsssxd Lingva tercüman kodunu nerede bulabilirim undefined ?

rsssxd commented 1 year ago

:) image

vitonsky commented 1 year ago

As workaround, to solve the problem, we can try to detect URLs and never translate strings that contains only URL.

Hovewer, this approach will not fix a bug for cases when string contains urls like "Hey Jeff, did you tried a https://google.com? I really like this site!"