I am using google translate for translating the web content.But as we know that it creates the div and classes itself, So i am unable to get selected language from drop down of google translate. I surf so many sites and so many questions but i did not find any appropriate answer.I want a solution that should not depends on cookies, And how I can call google translate every time with default language get from database for particular users.. My website is in english by default but i want that it should open in other language if other user choose their default language. I will be so thankful for a good solutions.I am using this normal code with 4 languages
<div id="google_translate_element" style="margin:10px 0 0;"> </div><div id="language"></div><script type="text/javascript">
function initializeGoogleTranslateElement() {
new google.translate.TranslateElement({
layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
includedLanguages: "zh-CN,en,ja,ko"
}, "google_translate_element");
}
</script>