Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
What does this module do that Google's own code doesn't?
For an English site, I could use the following markup.
<div id="google_translate_element"></div>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en'
}, 'google_translate_element');
}
</script>
<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
Comments
Comment #1
asb CreditAttribution: asb commentedInteresting question.
If I put this code into a block, the pulldown menu is displayed, but nothing happens when I select a language.
Also, the Javascript seems to interfere with admin_menu (pulldowns are dead, until the block is disabled).
This might work better when put elsewehere, e.g. in a theme template file.
Greetings, -asb
Comment #2
apadernoComment #3
apadernoThe link in the IS now shows the following message.
I am closing this issue, since new users don't have access to Google Translate's Website Translator anymore.