Saturday, January 13, 2007

Google Translation

You may have noticed the little drop-down menu thing on the top-right for translating this page. I found that simple code on somebody's website (I sincerely wish I could remember whose to give them credit where credit is due). It is a little bit of code that loads the URL you designate automatically into googles translation tool. After you copy the HTML below, in each place where you see "http://www.yourwebsite.com/" replace it with YOUR URL before you paste this code into your blogger template...


<!-- Begin Google Translator thingee -->
<form name="nav" width="90%">
<div>
<select name="SelectURL"onChange="document.location.href=document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value">
<option value="http://google.com/translate?langpair=en%7Cen&u=http://www.yourwebsite.com/" selected>Translate this Page</option>
<option value="http://google.com/translate?langpair=en%7Ces&u=http://www.yourwebsite.com/">Spanish</option>
<option value="http://google.com/translate?langpair=en%7Cit&u=http://www.yourwebsite.com/">Italian</option>
<option value="http://google.com/translate?langpair=en%7Cfr&u=http://www.yourwebsite.com/">French</option>
<option value="http://google.com/translate?langpair=en%7Cpt&u=http://www.yourwebsite.com/">Portuguese</option>
<option value="http://google.com/translate?langpair=en%7Car&u=http://www.yourwebsite.com/">Arabic</option>
<option value="http://google.com/translate?langpair=en%7Cja&u=http://www.yourwebsite.com/">Japanese</option>
<option value="http://google.com/translate?langpair=en%7Cko&u=http://www.yourwebsite.com/">Korean</option>
</select>
</div>
</form>
<!-- End Google Translator thingee -->


But now that i think of it - BUYER BEWARE! unless you trust who's webpage you are on, you may not want to use the translator drop-down as it would be totally easy to load a different (EVIL, BAD, DEADLY) URL into an unsuspecting person's browser. Cheers!

No comments:

Harvey the Hurricane, control (NOT), and cats

Today was a day of diligence. I cleaned the Nubby Buddha and managed to change ALL their litter boxes, plus the inside litter boxes, and bir...