Resource icon

xF1 Add-on Multi-Language web page in few seconds 1.0.1

No permission to download
  • Author Author Josh
  • Creation date Creation date
Very quickly make your web-page multi-language using Google Translate.

Demo: https://www.fixmystuff.in/FMS_Forum/

Put this code in the place where you want to put your translate option. I have put it in Logo Header region so that it is easily accessible to all users.

In logo_block add the following code:
Code:
<div class="google">
<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_translate_element');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</div>
In EXTRA.css add the following code:
Code:
/* google translate */
.google {
float: right;
margin-top: -35px;
}
Installation:
  • Upload contents of upload folder to root directory, overwriting any existing files.
  • Install addon-googleTranslate file.
Author
Josh
Size
25.5 KB
Extension
zip
Downloads
3
Views
1,202
First release
Last update

Similar resources

Define different moderation tasks and let your mods run them with only 2 clicks
[Nudaii] Href Language Tag AnimeHaxor
Add support for HrefLang to your XenForo
[TH] Language Chooser Position
Options to manage the Language Chooser through the Admin Control Panel
731Threads
2,285Messages
63,703Members
mcelraftLatest member
Back