pyragony54 wrote on Oct 17
th, 2023 at 5:32pm:
Can I have the code? (ask kindly). I think it is written in HTML and incorporated into the template.
It appears that you're correct about that.
I think I got the coding directly from Google, but I don't remember. Since I didn't find any notes about it, I'll have to create a note in my YaBB help files.
In any case, in the
Admin menu under
"Forum Controls" and then
"Template", it looks like there are two places to enable Google Translate where it's positioned.
Look for
{yabb grayscript} as I have it in the coding below, and then below that after a space, copy & paste what's shown.
{yabb grayscript}
<meta name="google-translate-customization" content="bc483284b366963d-637464d1a65fc0e4-g23f100ec9fc785f2-2e"></meta>
Also, look for
<td class="small vtop">{yabb newstitle} <span id="newsdiv"></span> as I have it in the coding below, and then below that after a space, copy & paste what's shown.
<td class="small vtop">{yabb newstitle} <span id="newsdiv"></span>
<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, multilanguagePage: true}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit
"></script>
</td>
</tr>
</table>
I hope that works.