How to add Google Translate to WebTrac
RecTrac 3.1.10.28.00
Table of Contents
Problem
How can we add a Google Translate option to our WebTrac site?
Solution
Within your WebTrac Parameters Profile, there is an Additional JavaScript field where you can enter the Google Translate code snippet.
Steps For Solution
- From the RecTrac main menu, go to Profile Assignments.
- In the Linked Profiles column, expand Users.
- Locate your WWW user.
- Highlight the WebTrac Parameters Profile linked to your WWW user.
- Click Update.
- Expand the WebTrac Brand Settings group.
- In the Additional JavaScript field, copy and paste the following Google Translate code snippet:
Google Translate
<div id="google_translate_element"></div>
<script type="text/javascript">function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', 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>- For additional information see W3 Schools.
- Click Save.
Reload your WebTrac site, you should now have the option to translate the page using Google Translate.