Google translator
3 posters
Page 1 of 1
Google translator
Hello. I have recently got the codes for google translator on my forum but idk how to use it. These are the codes i got below.
Paste this code onto your website
Copy and paste the following code snippets onto every page you want to translate
Place this meta tag before the closing </head>
Place this snippet where you'd like to display the Website Translator plugin on your page
Paste this code onto your website
Copy and paste the following code snippets onto every page you want to translate
Place this meta tag before the closing </head>
- Code:
<meta name="google-translate-customization" content="2d0abf31c8eeac62-40c75c068afd7839-g8a95b3fe38ad8f08-29"></meta>
Place this snippet where you'd like to display the Website Translator plugin on your page
- Code:
<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>
CodyDeathHammer- Forumember
- Posts : 147
Reputation : 1
Language : English
Re: Google translator
The last code can be placed in an announcement (all pages) or in a widget. I really do not know if you need the first part. The one I used when I added mine about a year ago was like the last code only.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Google translator
Put the first code in your overall header template.
Right at or around line 202 you will see
so just place it right above the </head> tag and below the END google_analytics_code
Then hit save, then go back and click on the green plus icon to publish
then as far as the second code, like SLGray has said announcement would be a good place, or even the very bottom of the overall header template under everything would be a good place to.
Info added
yeah and it all works fine, great actually, you might even want the second code at the very top of the over all header over top of all coding.
here is align right tags if you want it to the right hand side of your board. If so just place the second code in the middle of this tag
Right at or around line 202 you will see
- Code:
<!-- END google_analytics_code -->
>>>>>PLACE IT HERE <<<<<
</head>
so just place it right above the </head> tag and below the END google_analytics_code
Then hit save, then go back and click on the green plus icon to publish
then as far as the second code, like SLGray has said announcement would be a good place, or even the very bottom of the overall header template under everything would be a good place to.
Info added
yeah and it all works fine, great actually, you might even want the second code at the very top of the over all header over top of all coding.
here is align right tags if you want it to the right hand side of your board. If so just place the second code in the middle of this tag
- Code:
<div align="right"> SECOND CODE SCRIPT HERE </div>
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum