Using Google Translate in Your Website Easy Way
There are times when you have been asked for creating a Multi-lingual Website... I am not going to discuss how we can create one but Today I will be discussing a simple way to achieve the same functionality using Google Translate Widget in your website..
Here is the Code Snippet to achieve the same:
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Google Iframe</title> </head> <body> <form id="form1" runat="server"> <td valign="top"> <div id="google_translate_element" style="text-align: left"> </div> <script> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en'},'google_translate_element'); } </script> <script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"> </script> </td> Hello World. </form> </body> </html>
No comments:
Post a Comment
Thank You for Your Comments. We will get back to you soon.