I'm trying to implement the google translator dropdown, within a button. Now by clicking on the google translator dropdown, it does not show the countries / languages.
Here is the code I'm currently using with bootstrap:
<div class="dropup" id="translaters">
<button class="btn btn-default dropdown-toggle" style="background-color: #538b42; color: white;" type="button" data-toggle="dropdown">Translate
<div class="dropdown-menu" id="google_translate_element"></div>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement(
{pageLanguage: 'en'},
'google_translate_element'
);
}
</script>
</button>
<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</div>