The following technique is a quick and mostly effective way to create translated pages. it is NOT supported, nor ENDORSED - properly translated web pages are always better. |
Sometimes you may be doing a show that caters to a language outside your usual cultural domain. The following is a quick and dirty way to get Google to translate your pages for you after they have been rendered. Effectively:
<!--Google Translate Code --> <div id="google_translate_element"> </div> <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, gaTrack: true, gaId: 'UA-xxxxxxxx-x'}, 'google_translate_element'); } </script> <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"> </script> |