Remember the extension called "To Google Translate"? That's what I normally use on Firefox, but it's not available for Chrome or other Chromium-based web browsers.
Recently, I had to use Chrome for some work, but I'm not a fan of its built-in translation style. That's mostly because translated pages had their web script completely messed up. Besides, I prefer having the original page loaded while getting a translated version in a box similar to the one used by the add-on I'm used to.
A search for these requirements led me to an extension called Simple Translate. It's actually pretty similar to "To Google Translate", and is also available for Firefox.
Here's how it works. Install Simple Translate and it places an icon on the toolbar. Click on it to view its pop-up interface. Enter some text in the large box or paste something in it. The drop-down menu in the bottom right corner of the pop-up is for selecting the language the content has to be translated to, aka the target language.
The extension translates the text to the language that you selected. Click on the copy button to send the translated version to the clipboard. Listen to the translation by clicking on the speaker icon. Hit the "Translate this page" option to load the page in a new Google Translate tab.
There are three more ways to translate text. Select some text on a web page, and click on the Simple Translate icon in the toolbar and it uses it as the source to be translated.
Or, you can click on the pop-up Translate button that appears when you select the text.
The third way is to select text and use the right-click context menu to translate the text. This displays the translated version in a pop-up box right next to the selection.
Setting your second target language in the Simple Translate options page can be useful. If the selected text is already in your primary language, the addon will translate it to your second language.
You can toggle the button at the top to disable translation on the current website. The add-on's settings has a blacklist option "URL list to disable translation", use it to enter the addresses of the web pages that you don't want to be translated. You can customize the add-on's behavior and its interface (font, display position, height, width of the pop-up, etc).
Error: Service Usage limit reached
If you use it t translate too many phrases quickly, Simple Translate throws up an error message that says "Error: Service usage limit reached. Please wait a while and try again". It happened in both Chrome and Firefox.
To fix this, the extension recommends you to increase the "waiting time to translate" from the add-on's options. I tried this, but the error seems to recur, it mostly happened after I used it to translate a few phrases. So, I decided to simply wait it out, and it worked. You can still use Google Translate normally during the "waiting time".
The GitHub issues page for the extension reveals that this is a very old issue, dating back to 2018. This page in particular sheds more light on it.
Apparently, Simple Translate sends a request to the Google Translator API whenever text is selected, to auto-detect the language of the selected text.
The developer mentions that this behavior is by design. That means, if you quickly select text multiple times, a number of queries are sent to the API, which blocks the query sender (your IP address) from using the service for a short while.
I disabled the translation button, and the "translate in text field" options, and set the waiting time to 1000 (milliseconds). This seems to work better, at least for me.
Download Simple Translate for Chrome and Firefox. It is an open source extension. The add-on is quite good, except for the annoying error message. And since it uses Google Translate's API, the same privacy policies apply to the add-on's usage.
Thank you for being a Ghacks reader. The post Translate selected text quickly with the Simple Translate extension for Chrome and Firefox appeared first on gHacks Technology News.
https://ift.tt/39J4WTB
from gHacks Technology News https://ift.tt/3faq468
No comments:
Post a Comment