FilipePS / Traduzir-paginas-web

Translate your page in real time using Google or Yandex
https://addons.mozilla.org/pt-BR/firefox/addon/traduzir-paginas-web/
Mozilla Public License 2.0
4.39k stars 529 forks source link

“Show original”function often fails. #206

Closed minshifu closed 3 years ago

minshifu commented 3 years ago

This is a great addon but the “Show original”function often fails. Many parts of the page fail to return to the original language after I hit the "Show original" button. Sometimes the "Always translate" function also fails,because some parts of the page can not be translated automatically . Could you pls fix them, especially the first problem? Thank you!

FilipePS commented 3 years ago

Can you provide links to sites with these problems?

minshifu commented 3 years ago

Hi, I think I find out the reason why. I use the following highlight addon https://addons.mozilla.org/zh-CN/firefox/addon/highlightthis/?src=search which highlights some key words on a webpage. For your addon, my target language is English. When I browse a non-English webpage, it will be automatically translated into English version by your addon. At the same time some key words will be matched and highlighted by the above highlight addon. Then when I want to check the original language version and hit the "Show Original" button, the paragraphs with key words highlighted will not return to the original language version as shown by the picture below. However, both your addon and the highlight addon are important for me. I really want to use them at the same time. Could you kindly check the problem and find a fix? Thank you so much! Best regards!

This is the test webpage https://www.antaranews.com/berita/2258410/syarief-hasan-pemerintah-perlu-evaluasi-kebijakan-penanganan-pandemi

Key words are highlighted after webpage is translated into English version.

图片

After "Show Original" button is hit, the paragraphs with key words highlighted fail to return to the original language version.

图片

minshifu commented 3 years ago

Hi, I figure out a solution. Could you make the original text panel keep showing or at least showing for longer time ? It disappears too quickly. Thank you!

image