Wednesday, August 24, 2011

Translating Google+ Posts

I've noticed a few people complaining that it's a pain to translate posts they see in Google+. I made a modified version of the Google Translate Bookmarklet that you can use. Drag this link to your browser bar, highlight a block of text and click the bookmarklet. It will open a new window to a translate page auto-detecting the language and translated into English. If you'd like another language you can tweak the parameter in the url in the bookmarklet.

Full contents of the bookmarklet for easier reading:

javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){''+t+'&hl=en&langpair=auto|en&tbb=1&ie='+e);}

Update: There's now an official extension that works on individual posts.