Archive for the 'Web Site Management' Category

How to add google translation to website

We are working on a portal which requires to be translated in more than one language. We thought of using localization techniques in ASP .Net but wanted to make it possible without doing much alteration to the existing site (which is in english). This is when I was going through the google website translator and found this neat widget from translate this. It is just awesome since it asynchronously takes the HTML already generated in the page and translates it. Pretty cool widget and it takes just 8 lines to accomplish this.


<!-- Begin TranslateThis Widget -->
 <div id="translate-this">
 <a href="http://translateth.is/">Translate</a></div>

 <script type="text/javascript" src="http://www.google.com/jsapi"></script>

 <script type="text/javascript" src="http://x.translateth.is/translate-this.js"></script>

 <script type="text/javascript">
 TranslateThis();
 </script>

 <!-- End TranslateThis Widget -->

Hope this helps.

Happy Programming!!!

Cheers,

Raja