Friday, November 27, 2009

Multiple Language implementation Using Google Translate

Hi,

Just surfed through how to implement a multiple language App, & got this from google Translate..

Just add this code in your HTML Layout.

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

PTS:
This works only inside the app, & not in a HTML file.

Source : http://translate.google.com/translate_tools?hl=en


Thanks,
Srikanth

No comments: