Adding google translate to site?

Hi all,

D7.2

        I need to add google translate to all site pages, i have this to add to the pages:

<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'cy', 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>

 

Do i add an HTML block to all the pages inserting the above into the blocks as i go along?

 

If i am way off here please forgive my ignorance and advise as to my best way forward.

 

TIA

 

ED

It ain't easy being this stupid all of the time
Quote · 14 Oct 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.