I want my WordPress website to have multi language support, on clicking a drop down it will automatically convert the content into related language,without using of any plugin…
I am using this code :
I want my WordPress website to have multi language support, on clicking a drop down it will automatically convert the content into related language,without using of any plugin…
I am using this code :
<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>