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:
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.