Back to vBulletin 4.x Template Modifications

Forum Translator by Google
Mod Version: 1.00, by Infopro

vB Version: 4.1.0 Rating: (32 votes - 4.84 average) Installs: 150
Released: 29 Jan 2011 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

I'm not sure if anyone else has posted this, if so I apologize. I did find some other earlier versions of mods to use Google Translate, but could not find one similar and as simple to use as this.

In the footer template, find the first instance of:

Code:
</form>
Just below it add this:

Code:
<!-- Translate vBulletin -->
<div id="google_translate_element" class="footer_select"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'en',
    multilanguagePage: true,
    gaTrack: true,
    gaId: 'UA-12345-12',
    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>
<!-- /Translate vBulletin -->
Remove the 2 lines in red if you don't use Google Analytics. If you do, edit the number to your own.

It's so simple I think this would work on any version of vB.

Download

No files for download.

Similar Mods

Forum Display Enhancements UKBL ~ Easy Google Translator vBulletin 3.8 Template Modifications
End-User Options AJAX Google Translator vBulletin 3.7 Add-ons
Forum Display Enhancements UKBL ~ Easy Google Translator vBulletin 3.6 Template Modifications
Forum Display Enhancements UKBL ~ Easy Google Translator vBulletin 3.7 Template Modifications

vblts.ru supports vBulletin®, 2022-2024