web statistics

Make Available You Blog In Different Languages

Posted on July 16th, 2008 under Plugins, Tips,Tricks and Hacks, Tutorials, Web 2.0, WordPress
ADVERTISMENTS
Share |

If your blog is accessible in different languages, even reader of different countries can access your blog in their languages which can improve your pageviews and revenue scope.

Here’s a javascript code compiled by Amit of Labnol, which uses javascript to translate your website/blog from English to 9 languages,ie., French, German, Italian,Portugese, Spanish, Japanese, Korean, Simplified Chinese, and Arabic.

<form action="http://www.google.com/translate" >
<script language="JavaScript">
<!--
document.write ("<input name=u value="+location.href+" type=hidden>")
// -->
</script>
<input name="hl" value="en" type="hidden">
<input name="ie" value="UTF8" type="hidden">
<input name="langpair" value="" type="hidden">
<input name="langpair" value="en|fr" title="French" src= "http://photos1.blogger.com/img/43/1633/320/13539949_e76af75976.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30">
<input name="langpair" value="en|de" title="German" src= "http://photos1.blogger.com/img/43/1633/320/13539933_041ca1eda2.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30">
<input name="langpair" value="en|it" title="Italian" src= "http://photos1.blogger.com/img/43/1633/320/13539953_0384ccecf9.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30">
<input name="langpair" value="en|pt" title="Portuguese" src= "http://photos1.blogger.com/img/43/1633/320/13539966_0d09b410b5.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30">
<input name="langpair" value="en|es" title="Spanish" src= "http://photos1.blogger.com/img/43/1633/320/13539946_2fabed0dbf.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30">
<input name="langpair" value="en|ja" title="Japanese" src= "http://photos1.blogger.com/img/43/1633/320/13539955_925e6683c8.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30">
<input name="langpair" value="en|ko" title="Korean" src= "http://photos1.blogger.com/img/43/1633/320/13539958_3c3b482c95.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30">
<input name="langpair" value="en|zh-CN" title="Chinese Simplified" src= "http://photos1.blogger.com/img/43/1633/320/14324441_5ca5ce3423.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30">
<input name="langpair2" value="en|ar" title="Arabic" src= "http://photos1.blogger.com/blogger/3709/485/1600/arabic-flag.gif" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30" />
</form>

Note:If you copy-paste the code, and you get any errors try to retype the quotes in the JavaScript Code.Also if you want to use the try uploading the flags to your server.

If you are Wordpress you can try out the Global Translator plugin which can automatically translate your blog in the following different languages: English, French, Italian, German, Portuguese, Spanish, Japanese, Korean, Chinese, Arabic, Russian, Greek, Dutch, Norwegian, Bulgarian, Czech, Croat, Danish, Finnish, Hindi, Polish, Rumanian and Swedish.global-translator

Features :

  1. Four different Translation Engines to choose from : Google Translation Engine, Babel Fish, Promt, FreeTranslations.com
  2. Search Engine Optimized: Uses this prmalink structure www.domain.com/en/mycategory/mypost
  3. Built-in cache to reduce the online connections to the translation engines.
  4. Easily customizable.

And is also compatible upto WP 2.5.*

Global Translator : HomePage | Download v 0.9 Release Date May 10 2008

Written by Avinash

Browse Tech Yard for the latest & interesting web applications, Freewares, Wordpress Tips, Firefox Hacks and Addons, Mobile Phones, Windows - Linux - MAC OS Tricks.

Stumble Digg Technorati Reddit Delicious


Related Posts

One Response to “ Make Available You Blog In Different Languages ”

  1. Tech Updates says:

    Nice idea but i would go for a plugin than adding lot of javacodes to my website/blog :)



Leave a Reply

Subscribe to TECH YARD:

RSS

Grab the RSS feed for Free Updates!


subscribe

Get blog updates sent directly to your inbox by entering your email address above.