Translate Your Homepage With ONE CLICK
Wednesday, January 6, 2010 11:19:35 AM
Visitors to our homepages only hang around if our pages work well! I wanted a one-click translation of my homepage http://www.ring-carlsen.dk for this very reason! Beside that I wanted it to work with Opera Mini and in My Opera! First I thought I needed a Bookmarklet. My start point was a Bookmarklet from Yeswaps page:
My friend Vectronic helped me to get to this Bookmarklet:
It works fine but demands the user to select from and to language plus selecting translate. I needed to pre set the languages and found a page about that. Google use following tags:
hl: Translate page language
sl: Source page language
tl: Translate TO language
I added the codes and arrived to this Bookmarklet:
This Link sets the 3 languages and the source page. It works everywhere, as it is "just" a Link. You can make say 5 Links for 5 different languages if you like.
Corrected for problem with IE: http://translate.google.com/translate?hl=en&ie=UTF-8&sl=da&tl=en&u=http://www.ring-carlsen.dk/&prev=_m&twu=1
GUIDE TO MAKE TRANSLATE LINK
Insert X1 -> X4 in the link above
X1: Translate page language (I chouse en for English)
X2: Source page language (I chouse da for Danish)
X3: Translate TO language (I chouse en for English)
X4: The html page or domain you want to translate
Codes for other languages you can see here http://sites.google.com/site/tomihasa/google-language-codes
If you use frames you need to open the Link into a new page (target=”_blank”)!
After all this rumbling I realized that the Link also can be created using http://translate.google.com , inserting all the settings, hit translate and then bookmark the page. BUT Translate page language is not easy to set!
Well sometimes you need to cross the desert to get sand :-s
Thomas aka Samoht1