MyBB Community Forums

Full Version: Customize google translate snippet
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi guys,
google banned the use of api, so only free way to add google translate in website is "Google translate javascript snippet" from

https://translate.google.com/manager/


<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> 

but i am not able to resize and customize it, it break the theme...so any way to resize the output element (one small image + select language text)

if possible like this site ==>> http://www.iobit.com/ (Check top right corner), it don't have "Powered by" word, may be they use css....?
I'm searching for anyone who may want it, but I just released a simple html snippet which will translate any text on a webpage to one of 67+ different languages using Google Translate without leaving the page:
https://github.com/LevyImage/Dropdown-Go...ranslation

There's both beatified and minified versions in the repository.