slg
Joined : 2011-12-25 Posts : 176 Warn : 0% Location : Texas
| Subject: [Tutorial 3] Add Google Translate Fri Dec 30, 2011 5:30 pm | |
| This tutorial will show you how to add Google Translate to a Forumotion forum. Add this code to an announcement, the homepage message, or in a widget. - Code:
-
<script> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en', floatPosition: google.translate.TranslateElement.FloatPosition.BOTTOM_LEFT }); } </script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> Notice this in the code: BOTTOM_LEFT By changing it, you can move the button for Google Translate round on the page. |
|
Treyarch
Joined : 2011-08-25 Posts : 1705 Warn : 0% Location : United Kingdom
| Subject: Re: [Tutorial 3] Add Google Translate Fri Dec 30, 2011 5:37 pm | |
| |
|
Treyarch
Joined : 2011-08-25 Posts : 1705 Warn : 0% Location : United Kingdom
| Subject: Re: [Tutorial 3] Add Google Translate Fri Dec 30, 2011 5:39 pm | |
| Update Added. |
|
slg
Joined : 2011-12-25 Posts : 176 Warn : 0% Location : Texas
| Subject: Re: [Tutorial 3] Add Google Translate Fri Dec 30, 2011 5:42 pm | |
| Looks good. This will help members and guests. The Forumotion translator really does a poor job compared to Google. |
|
Sponsored content
| Subject: Re: [Tutorial 3] Add Google Translate | |
| |
|