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

Advertisements

6 Responses to “How to add google translation to website”


  1. 1 JR February 26, 2010 at 7:25 pm

    Thanks for posting about this widget. Check out the brand new WordPress plugin as well: http://translateth.is/wordpress

  2. 2 Anamika Shrivastava May 13, 2011 at 11:29 am

    i want to use google translator.
    When i enter my text in a textbox in english language it automaticaly converts in a hindi language when i press enter key after type a letter.
    Please help me It’s Urgent.

  3. 3 Anamika Shrivastava May 13, 2011 at 11:34 am

    I am using fileupload control to save the image in a database and i also show that image in a grid view from database .
    It’s working but how to edit/Update image in a gridview using file upload control.

  4. 4 Anamika Shrivastava May 13, 2011 at 11:34 am

    I am using fileupload control to save the image in a database and i also show that image in a grid view from database .
    It’s working but how to edit/Update image in a gridview using file upload control.

  5. 5 David Grunwald June 12, 2011 at 10:26 am

    Hi, great post but that widget will probably not be free by the end of the year: Google decided to shut down their free Translate API in May, 2011. Our company has developed a WordPress plugin for translation of websites. It povides high quality translation by allowing post-editing of machine translated content using a translation community. And it is free, and will remain free. More information on http://wordpress.org/extend/plugins/gts-translation/

  6. 6 manikandan March 15, 2013 at 4:36 am

    i want to use google translator.
    When i enter my text in a textbox in english language it automaticaly converts in a tamil language when i press enter key after type a letter.
    Please help me It’s Urgent.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s





%d bloggers like this: