Hi everyone,
yesterday I decided to upgrade a script that was making an interrogation to Google web page translate. Actually the one I've seen could only translate the current page in English... not very versatile.
So I decided to add a prompt where you can type the language you want Google to translate the page in. The prompt allow a string of 2 chars as input and if it doesn't represent any language (as 'zz') then the default 'en' is used.
That's the code of the script:
javascript:A14nH=location.href; L3f7=prompt('Choose%20destination%20language%20(2%20chars%20abbreviation):%20','en'); if(L3f7.length==2) {location='http://translate.google.es/translate?u='%20+%20encodeURIComponent(A14nH)+'&sl=auto&tl='+L3f7;}else{alert ('Invalid%20language%20abbreviation.')}
Finally all the power of translation is at the reach of our cursor! Now I can enjoy to translate pages from Chinese to Arabic in a click!
Gianluca


LinkBack URL
About LinkBacks




Reply With Quote


Ok thanks!
