Google Blogoscoped

Forum

Adding a Google Translation Shortcut to Firefox  (View post)

Matt [PersonRank 0]

Tuesday, December 9, 2008
11 years ago10,151 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: //translate.google.com/translate_t?text='+t+'&hl=en&tbb=1&ie='+e;}else{location.href='http: //translate.google.com/translate?u='+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]

11 years ago #

This is... the "official" bookmarklet ;)
translate.google.com/translate ...

Jonathan [PersonRank 0]

11 years ago #

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

Splasho [PersonRank 10]

11 years ago #

I love Ubiquity [ labs.mozilla.com/2008/08/intro ...], 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]

11 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]

11 years ago #

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

你好 [PersonRank 1]

11 years ago #

喂,你好吗?
Hello,how are you?

great post! I love chinese!

你好 [PersonRank 1]

11 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

Advertisement

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

 

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