3. Add the Google Translator Widget to the web page.
<divid="google_translate_element"></div>
4. The important script to allow the Google Translator on your webpage.
functiongoogleTranslateElementInit(){newgoogle.translate.TranslateElement({pageLanguage: 'en',layout: google.translate.TranslateElement.InlineLayout.SIMPLE,autoDisplay: false},'google_translate_element');}functiontranslateLanguage(lang){googleTranslateElementInit();var$frame=$('.goog-te-menu-frame:first');if(!$frame.size()){alert("Error: Could not find Google translate frame.");returnfalse;}$frame.contents().find('.goog-te-menu2-item span.text:contains('+lang+')').get(0).click();returnfalse;}$(function(){$('.selectpicker').selectpicker();});