Google Blogoscoped


Adding a Google Translation Shortcut to Firefox  (View post)

Matt [PersonRank 0]

Tuesday, December 9, 2008
12 years ago10,486 views

The following bookmarklet works great.

If you select text and hit it, it goes to a google translate page with just that text. Otherwise it translates the entire page you are on.

javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection%20&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset||document.characterSet);if(t!=''){location.href='http: //'+t+'&hl=en&tbb=1&ie='+e;}else{location.href='http: //'+escape(location.href)+'&hl=en&tbb=1&ie='+e;};

[added blank between "http:" and "//" in two locations to prevent forum autolinking... -Philipp]

TOMHTML [PersonRank 10]

12 years ago #

This is... the "official" bookmarklet ;) ...

Jonathan [PersonRank 0]

12 years ago #

This works just as well in Chrome, I'm pretty sure.

Splasho [PersonRank 10]

12 years ago #

I love Ubiquity [ ...], I just select text on a website hit control space and type "translate" or "translate to French". That displays the translation and if I press enter the text on the page is replaced by the translation, ready for printing etc.

Rohit Srivastwa [PersonRank 10]

12 years ago #

"Official" bookmarklet have all the languages expect "AUTO"
I think its bad idea to keep those many bookmarklet to translate.

So I changed one lang pair AUTO|EN and it works for me for any language page...

Moody Loner [PersonRank 0]

12 years ago #

Splasho beat me to the punch, Ubiquity is the future of semantics on the web

你好 [PersonRank 1]

12 years ago #

Hello,how are you?

great post! I love chinese!

你好 [PersonRank 1]

12 years ago #

Google and Kingsoft released a free translation software called “Google Kingsoft PowerWord", which is better can fetch the translation from the web automatically, is better for chinese user like me.

This thread is locked as it's old... but you can create a new thread in the forum. 

Forum home


Blog  |  Forum     more >> Archive | Feed | Google's blogs | About


This site unofficially covers Google™ and more with some rights reserved. Join our forum!