Insert Website translator into 90 languages by Google

Andere Lösungen
Post Reply
rreinhardklein
Posts: 74
Joined: Mon 14. Jul 2014, 14:32

Insert Website translator into 90 languages by Google

Post by rreinhardklein »

If you need to have a quick and dirty translation of your website into 90 Languages, the Google Website translator is a great joice.
Example- see my german website:
http://www.rklein.info
and click the google language selector top left and make choice-seconds later the website is translated- with all sub-menue items and internal links. Even to chinese.

If you want to include it into your website then go to:
http://translate.google.com/manager/website/?hl=en for english or
http://translate.google.com/manager/website/?hl=de for german
and complete the required set up information, mark and copy the then generated codelines with Ctrl-C
and add them into cmSimple -> Setup ->Template with Ctrl-V and insert the code into the content section and save.

In my example template minimal_2cols960R it looks like:
#############################################
CONTENTS CONTAINER
#############################################
-->

<div id="tplge_contents">


<!-- CONTENT MAIN -->

<div id="tplge_main">
<div id="tplge_mainin">

<!-- Google Translator Code -->
<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'de', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<!-- Google Translator Code ends here-->


You might have to cut Ctrl-X and reinsert between other code-lines to get best result for your template.
DO NOT USE THIS CODE HERE BUT GENERATE YOUR OWN at the links provided above.


You can also insert it in just ONE Page by inserting the codelines with the html button of the tinyeditor into just the one page.

A Language selector will be inserted, where the user can select to se your website or just one page in up to 90 Languages.

Certainly you are vulnerable of google translation mistakes and errors, but it is redable- for a much wider international audience and by mousover you can send translation improvment requests to google.
Post Reply