How to use Google translator to translate our website content?

Paste this code in your website.
1. Paste this meta tag before closing head

    <meta name=”google-translate-customization” content=”51685ccabc139ac7-27bb7bf1add926e4-g8afbc24b052493ca-10″>     </meta>

2.  Now paste this code in your webpage where you want to display the website translator plugin.

    <div id=”google_translate_element”></div><script type=”text/javascript”>
    function googleTranslateElementInit() {
    new google.translate.TranslateElement({pageLanguage: ‘en’, layout:                        google.translate.TranslateElement.InlineLayout.HORIZONTAL}, ‘google_translate_element’);
   }
   </script><script type=”text/javascript” src=”//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit”>        </script>

 

Advertisements

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