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

asb’s picture

Interesting 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

apaderno’s picture

Title: This module is unnecessary: code here » What does this module do that Google's own code doesn't?
Issue summary: View changes
apaderno’s picture

Category: Feature request » Support request
Status: Active » Closed (outdated)

The link in the IS now shows the following message.

We no longer provide new access to Google Translate's Website Translator. This change does not affect existing use of the Website Translator.

We encourage users looking to translate webpages to use browsers that support translation natively.

I am closing this issue, since new users don't have access to Google Translate's Website Translator anymore.