Hello, I am adding the google translator into my website(using below
code),  user can choose from a drop down list and select the
destination language, then google can translate it without any
problem.

My question is: can the translation automatically starts after the
page is loaded, then user does not need to choose the destination
language? I know there is translation API can be called in AJAX. But I
want to translate the whole page, the length of text exceeds 5000
characters, so i want to let the drop down list is automatically
selected after the page is loaded, then the whole page can be
automatically translated.

Can anyone help? thanks  a lot!

<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>

-- 
You received this message because you are subscribed to the Google Groups 
"General" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-translate-general?hl=en.

Reply via email to