Translate website using Google API

Translate website using Google API

For using this exciting feature of google for your personal website you have to create an account with google.
Webpage display to you.



Click on ADD New website button





Here Enter your Website  url here on which you wanna conversion.



Here click on Get code button.



Here is your final code just copy and paste in your web pages.








Code on .aspx page


<head runat="server">
    <title></title>
    <meta name="google-translate-customization" content="e1cb892173f8ff4b-e5b6851cc8c317fa-g11be51affd0c7551-16"></meta>
</head>
<body>
    <form id="form1" runat="server">
    <div><div id="google_translate_element"></div><script type="text/javascript">
                                                      function googleTranslateElementInit() {
                                                          new google.translate.TranslateElement({ pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE }, 'google_translate_element');
                                                      }
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
   Kandy here.Weekend is  coming ,so i have a greate plan for this weekend.
    </div>
    </form>
</body>

Finally It will look like :-




Comments

Popular posts from this blog

Create and save QR code in asp.net with C#

Change text of RadGrid Header Dynamically

Telerik Radwindow Open on Button Click