I use Google translate on my site, with the option not to show te topribbon or go to Google translate when translating a page into another language. Now, if I want to show the top ribbon, then there is a Reset button in this ribbon to show the original language, but now, when I do not show this ribbon, there is no way to show the original language, except to select my language from the drop-down list, but if I have it Iโll do it, it will be a translation into a translation, if you understand what I mean? therefore, some words will not display correctly. So what I want is a Reset button, which I can, but in the code that I use for the Google translate dropdown:
<div id="google_translate_element"></div> <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'sv'}, 'google_translate_element'); jQuery('.goog-logo-link').css('display', 'none'); jQuery('.goog-te-gadget').css('font-size', '0'); } </script> <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <style type="text/css"> .goog-tooltip { display: none !important; } .goog-tooltip:hover { display: none !important; } .goog-text-highlight { background-color: transparent !important; border: none !important; box-shadow: none !important; } iframe.goog-te-banner-frame { display: none !important; } body { position: static !important; top:0px !important; } </style>
google-translate
Patrik Idรฉn
source share