GOOGLE TRANSLATER FOR D 7.1.x FOR 25+ LANGUAGES

Happy New Year from Barcelona.

Here is a free gift for everyone.  Google Translate Element for D 7.1.4 !

You can have your entire site translate at a click of a button regardless of browser.

Open your _sub_header.html in the templates/base folder in Notpad++

look for this code around line 8

<div class="sys_ml_wrapper bx-def-padding-sec">
                <bx_injection:injection_logo_before />
                __main_logo__
                <bx_injection:injection_logo_after />
</div>

and change to this

<div class="sys_ml_wrapper bx-def-padding-sec">
                <bx_injection:injection_logo_before />
                __main_logo__
                <bx_injection:injection_logo_after />
                <div id="google_translate_element" style="float:right; position:absolute; top:60px; right:30px; " ></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'be,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,hi,hr,hu,is,it,ja,lt,lv,ms,nl,no,pl,pt,ro,ru,sk,sl,sq,sr,sv,sw,th,tr,uk,zh-CN', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, multilanguagePage: true}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</div>

You need to add this or else it will look shit: style="float:right; position:absolute; top:60px; right:30px; "

Vary these setting as per your preference.

I have attached the file _sub_header.htm for clarity.

This was a lot of pain staking work on v7.1.4 which i think is...... well never mind what I think.

_sub_header.html · 2.3K · 593 downloads
OpCo UK
Quote · 9 Jan 2014
 
 
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.