Google translator in our web site or blog

 In this article, we can install google translator in our web site or blog, many times we have doubt how to translate the content in our language like Hindi, French, and English and so on.  We can install Google Translate Web element and get free online website translation service for any page.

Design:-
 





Source Code:-
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="translator.aspx.cs" Inherits="translator" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
   
        <div id="google_translate_element">
        </div>
        <script type="text/javascript">

            function googleTranslateElementInit() {

                new google.translate.TranslateElement({

                    pageLanguage: 'en'

                }, 'google_translate_element');

            }

        </script>
        <script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" type="text/javascript"></script>
    <fieldset style="width:350px;">
    <legend>Translator </legend>
    DMD Solutions is a complete IT solutions company, providing software development
    and IT services. We are an entity that is focused to provide 100% satisfaction to
    our clients and anticipate that we will be your preference if when you are going
    to promote your business as well as company. We provide the latest technology and
    most innovative solutions, allowing us to give our customers the best service possible.
    </fieldset>
    </form>
</body>
</html>

Out-Put:-




Note: - You can also create custom translator to click on below link





More Post:-




Google translator in our web site or blog Google translator in our web site or blog Reviewed by NEERAJ SRIVASTAVA on 5:30:00 PM Rating: 5

No comments:

Powered by Blogger.