javascript - Automatic translation does not work in coordinator after redirect page -
hello friends new in php , want use google translate on website using google translate tool website- setting via: https://translate.google.com/manager/website/ website data arabic want translate default english.if choose language drop down working want default translate english not need choose language.and 1 more think when choose language work when page redirect page in case not working here code
<div id="google_translate_element"></div><script type="text/javascript"> function googletranslateelementinit() { new google.translate.translateelement({pagelanguage: 'ar', includedlanguages: 'ar,en', layout: google.translate.translateelement.floatposition.top_left}, 'google_translate_element'); } $(window).load(function () { settimeout(function () { if ($("select.goog-te-combo option:first").val()=='') { $("select.goog-te-combo option:first").text('english'); } }, 1000); }); </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googletranslateelementinit"></script>
Comments
Post a Comment