K.Ermit 1 Posted November 3, 2020 Share Posted November 3, 2020 We'd like to use Google Translate on our Frog platform. Is this possible? We have lots of EAL parents who struggle with Frog in English. Quote Link to post Share on other sites
Graham Quince 619 Posted January 5 Share Posted January 5 I have managed to get Google Translate working with the HTML widget, if anyone would like to try it out and report back: <script> var google_translate_element, googleTranslate = document.createElement('script'); google_translate_element = $("<div>", { id: Frog.Utilities.generateSimpleId() }); window.setTimeout(function() { new google.translate.TranslateElement({pageLanguage: 'en'}, google_translate_element.attr('id')); }, 5000); googleTranslate.src = "//translate.google.com/translate_a/element.js"; document.head.appendChild(googleTranslate); arguments[0].append(google_translate_element); google_translate_element.addClass('translateBar'); </script> <style> .translateBar { position: absolute; top: 0px; right: 0px; } </style> Google seems keen to encourage users to run Google Translate directly in the Chrome browser, using the Google Translate extension: https://chrome.google.com/webstore/detail/google-translate/aapbdbdomjkkjkaonfhkkikfgjllcleb You can share this link with parents, and all they need to do is click the button marked Add to Chrome. The extension will appear in their browser's toolbar and translate most text on all websites into their chosen language. Quote Link to post Share on other sites
ADT 1,271 Posted January 6 Share Posted January 6 Works for me!! 16 hours ago, Graham Quince said: I have managed to get Google Translate working with the HTML widget, if anyone would like to try it out and report back: <script> var google_translate_element, googleTranslate = document.createElement('script'); google_translate_element = $("<div>", { id: Frog.Utilities.generateSimpleId() }); window.setTimeout(function() { new google.translate.TranslateElement({pageLanguage: 'en'}, google_translate_element.attr('id')); }, 5000); googleTranslate.src = "//translate.google.com/translate_a/element.js"; document.head.appendChild(googleTranslate); arguments[0].append(google_translate_element); google_translate_element.addClass('translateBar'); </script> <style> .translateBar { position: absolute; top: 0px; right: 0px; } </style> I still think the Chrome extension is a better way to do this, but if parents are not using Chrome, then at least this method should (in theory) be able to run Google Translate on any browser Works for me!! Tried it in Chrome and Safari!! 👍 1 Quote Link to post Share on other sites
ADT 1,271 Posted January 6 Share Posted January 6 Hot off the press..... 1 Quote Link to post Share on other sites