I hope I am posting in the right forum.
Until a few days ago I was able to translate individual posts following these instructions: Translate post
Since a few days I get this error: Uncaught TypeError: google.translate.SectionalElement is not a constructor
Does anyone have an idea how to solve this problem?
This is my script in the
overall_header.html
Code: Select all
<script>
function googleSectionalElementInit() {
new google.translate.SectionalElement({
sectionalNodeClassName: 'goog-trans-section',
controlNodeClassName: 'goog-trans-control',
background: '#f4fa58'
}, 'google_sectional_element');
}
</script>
<script type="text/javascript" data-name="googletranslate" data-src="//translate.google.com/translate_a/element.js?cb=googleSectionalElementInit&ug=section&hl=en"></script>