
Google Translate is the best free online translation service today and I often wonder why I rarely see this feature on websites. The translation isn’t always perfect but it gives a head start.
We have tried several plugins and weren’t that happy with the UI until we ended up using Google Translation own tool. You might beg to differ, but we like it’s simple interface.
Example
The Google Translation tool is a simple dropdown box where it is possible to choose from 3 variants. It also offers to add your Analytics Web Property ID to track translation usage in Google Analytics. Here is the code for the translation dropdown box we use at this site.
function googleTranslateElementInit() {
new google.translate.TranslateElement({
// CHOOSE LANGUAGE
pageLanguage: 'en',
autoDisplay: false,
gaTrack: true,
// UA CODE GOES HERE
gaId: 'YOUR-UA-CODE',
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>
The Google Translation dropdown box can also easily be created on the Google Translation tools site here





Posted in
Tags:
«







I was recommended this website by means of my cousin. I am no longer certain whether or not this put up is written through him as nobody else know such detailed approximately my problem. You’re wonderful! Thank you!