Add Language Translation Flags To Your Blog

Adding Language Translator to your site or blog is very important. A huge amount of internet users do not know the english. So If you keep translator , it will increase your visitors. Normally we just copy-paste the site address in Google Translate website or Yahoo Babelfish to convert the site content to English.








Just Copy and Paste the following code in your blog or site. Or see How to add gadgets in your blog??





<form action='http://www.google.com/translate'>

<script language='JavaScript'>

<!--document.write ("<input name=u value="+location.href+" type=hidden>")

// -->
</script>


<input name='hl' type='hidden' value='en'/>


<input name='ie' type='hidden' value='UTF8'/>


<input name='langpair' type='hidden' value=''/>


<input name='langpair2' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/iq.png' title='Arabic' type='image' value='en|ar'/>


<input name='langpair2' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/ca.png' title='Catalan' type='image' value='en|ca'/>


<input name='langpair2' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/bg-4.png' title='Bulgarian' type='image' value='en|bg'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/cn.png' title='Chinese Simplified' type='image' value='en|zh-cn'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/cn.png' title='Chinese Traditional' type='image' value='en|zh-tw'/>


<input name='langpair2' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/hr.png' title='Croatian' type='image' value='en|hr'/>


<input name='langpair2' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/cz.png' title='Czech' type='image' value='en|cs'/>


<input name='langpair2' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/dk.png' title='Danish' type='image' value='en|da'/>


<input name='langpair2' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/nl.png' title='Dutch' type='image' value='en|nl'/>


<input name='langpair2' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/ph.png' title='Filipino' type='image' value='en|tl'/>


<input name='langpair2' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/fi.png' title='Finnish' type='image' value='en|fi'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/fr.png' title='French' type='image' value='en|fr'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/de.png' title='German' type='image' value='en|de'/>


<input name='langpair2' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/gr.png' title='Greek' type='image' value='en|el'/>


<input name='langpair2' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/in.png' title='Hindi' type='image' value='en|hi'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/id.png' title='Indonesian' type='image' value='en|id'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/it.png' title='Italian' type='image' value='en|it'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/jp.png' title='Japanese' type='image' value='en|ja'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/kr.png' title='Korean' type='image' value='en|ko'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/lv.png' title='Latvian' type='image' value='en|lv'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/lt.png' title='Lithuanian' type='image' value='en|lt'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/no.png' title='Norwegian' type='image' value='en|no'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/pl.png' title='Polish' type='image' value='en|pl'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/pt.png' title='Portuguese' type='image' value='en|pt'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/ro.png' title='Romanian' type='image' value='en|ro'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/ru.png' title='Russian' type='image' value='en|ru'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/sr.png' title='Serbian' type='image' value='en|sr'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/sk.png' title='Slovak' type='image' value='en|sk'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/sl.png' title='Slovenian' type='image' value='en|sl'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/es.png' title='Spanish' type='image' value='en|es'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/sv.png' title='Swedish' type='image' value='en|sv'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/ua.png' title='Ukrainian' type='image' value='en|uk'/>


<input name='langpair' onclick='this.form.langpair.value=this.value' src='http://i421.photobucket.com/albums/pp296/rnbutpur/vi.png' title='Vietnamese' type='image' value='en|vi'/>


<a href='http://blogger-godown.blogspot.com'><img src='http://i421.photobucket.com/albums/pp296/rnbutpur/favicon-blogger-godown.png' title="Blogger-Godown" width='20' height='10'/></a>


</form>

P.S:This code translates from english to other 32 languages. If you want to translate from your regional languages to other languages, then you have to modify the script a little bit.



First modify this line of code : <input name='hl' type='hidden' value='en'/>
Just replace en with your blog language (code). Since my blog is in english so i used 'en'. Refer language codes below. Example : If your blog is in French you should replace 'en' with 'fr'.

Comments Post a Comment

Anonymous - March 07, 2009

Thanks, It helps me lot.

UFOManiacs - April 12, 2009

It just goes straight to google translate.Is there any other way to modify the code so it automatically translates.Any help would be much appreciated.
Regards Rizze

Technosharia - April 22, 2009

Thanks Russel, I have added those codes in my blog:
http://technosharia.blogspot.com

Best Regards

Vikram - May 20, 2009

I really liked your suggestions for translation.
This is really nicely done

onlineforexindex - May 24, 2009

Thanks for the handy widget but it doesn't automatically translate the page Google translate asks for the URL. Can u explain how to make this widget automatically get URL while clicking on any flag ?

http://onlineforexindex.blogspot.com

Leave a Comment