Well, to make something productive out of this, this is what I put on
my forum.
On prosilver, this should fit next to the navlinks stuff, i.e.
Open: overall_header.html
Find:
Code: Select all
<li class="rightside"><a href="#" onclick="fontsizeup(); return false;" onkeypress="return fontsizeup(event);" class="fontsize" title="{L_CHANGE_FONT_SIZE}">{L_CHANGE_FONT_SIZE}</a></li>
Add before:
Code: Select all
<li class="rightside"><span id="google_translate_element"></span></li>
<script type="text/javascript">
// <![CDATA[
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
autoDisplay: false,
gaTrack: true,
gaId: 'UA-XXXXXXXX-Y',
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>
Best place for subsilver2 seems to be right above
<!-- INCLUDE breadcrumbs.html -->
in
overall_header.html
.
Code: Select all
<div><span style="float: {S_CONTENT_FLOW_BEGIN};" id="google_translate_element"></span></div>
<script type="text/javascript">
// <![CDATA[
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
autoDisplay: false,
gaTrack: true,
gaId: 'UA-XXXXXXXX-Y',
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>
P.S. If you are using GA, replace the
UA-XXXXXXXX-Y
as needed, if not, remove that line and change the previous one to
gaTrack: false
.