Google Translate Widget with Flags For Blogger

The Google Translate Widget for Blogger allows the visitors to translate your site or blog in their own language.
This widget also auto-detect your blog language and then translate it to the readers chosen language.

It supports 12 different languages:
English, French, German, Spanish, Italian, Dutch, Portuguese, Russian, Japanese, Korean, Arabic And Chinese.
google translate for blogger, blogger gadgets, blogger tricks

How To Add The Google Translate Widget To Blogger

Step 1. Go to your Blogger Dashboard >> Layout and click on "Add A Gadget" link



Step 2. From the pop-up window, scroll down and choose HTML/JavaScript


 Step 3. Paste the code below in the empty box:

<script type="text/javascript">
function showHide(shID) {
    if (document.getElementById(shID)) {
        if (document.getElementById(shID+'-show').style.display != 'none') {
            document.getElementById(shID+'-show').style.display = 'none';
            document.getElementById(shID).style.display = 'block';
        }
        else {
            document.getElementById(shID+'-show').style.display = 'inline';
            document.getElementById(shID).style.display = 'none';
        }
    }
}
</script>

<style>

 .google_translate img {
margin: 10px 20px 0px 20px;
    height: 24px;
    width: 24px;
        }
        .google_translate:hover img {
filter:alpha(opacity=0.30);
        -moz-opacity: 0.30;
        opacity: 0.30;
        border:0;
        }

.more {
    display: none;
a.showLink, a.hideLink {
    text-decoration: none;
    color: #0880C4;
    padding-left: 18px;
    background: transparent('down.gif') no-repeat left; }

a.hideLink {
    background: transparent url('up.gif') no-repeat left;
color: #0880C4;}

a.showLink:hover, a.hideLink:hover {
color: #0880C4;
 }

 </style>

 <div>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="English" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cen&hl=en'); return false;"><img alt="English" border="0" align="absbottom" title="English" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZe77eIglSjiHiJ_FFqtrdP7QH6Yis6CfHAhuNsP-VphyphenhypheniYacgNRXMBuXlWxLFu5aK9Pl9KLEWe4Y_VGrkuQ5emPl7mW05DuftxJHS7SLq6YdVIuo2Cb6tGXboi27AM4XH-aFdqENBX_Q6/s1600/United+Kingdom(Great+Britain).png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="French" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cfr&hl=en'); return false;"><img alt="French" border="0" align="absbottom" title="French" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMBZH8M0-Ht2gOOPfMHbelB3utp_ElbmOf7Jm71YUV5iLsKtq3EQoHcTkCdEF-eT8xIdOCRryQ_bw-tNevUMJf7qnwwk7scLrBW_MDX4RXE-_7fjyodgpL_VTdqirpjMPSXo1Rc5CLCpRt/s1600/France.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="German" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cde&hl=en'); return false;"><img alt="German" border="0" align="absbottom" title="German" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikcjjueJJd-PK8W0F4-vLeyVp011ZnH5UZWGkHk5pBs4cQHv8aOV69CdQp6fv0kdyu2c7vLaAFgroHnYLkowEIIzd9OksRRTy9en99Rd4YXcMPv-DJmsCefxX4DI_iPUtUkm_KTc0xWLrX/s1600/Germany.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Spain" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7ces&hl=en'); return false;"><img alt="Spain" border="0" align="absbottom" title="Spain" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9x_OrFal2bpji9-53VIfZW33qfJg9obAsWk2Q28glvSY45u4bBDWwLHyXIKnOu0fRWuKeUOYQ2XaHJb8OQo3iPx6Bgvkw-DkeN0K7yDH8e6FmRTUE8tuTNfOwoBXWswN0GLo5xsx0x_10/s1600/Spain.png" style="cursor: pointer;margin-right:8px" width="24"/></a><a href="#" id="example-show" class="showLink"
onclick="showHide('example');return false;">More</a>
<div id="example" class="more">
 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Italian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cit&hl=en'); return false;"><img alt="Italian" border="0" align="absbottom" title="Italian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUJZ-1SCY3knpN4RH8371mCtMd033wtrOJlt8Qll6thMzk1AiNvq147KqPiv9qXmQO-hENW5WMCo6Xmny2f2_q1NEcutimVAFUz3VbiBvfv_8FEcAyH7Gy24Dbwo5B3Flo2riQLyO4itK0/s1600/Italy.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Dutch" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cnl&hl=en'); return false;"><img alt="Dutch" border="0" align="absbottom" title="Dutch" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYe5ES3dTUx1fzIPA1KHvIcYI6uW71SDW3OJHIx5AV9IxEKaHwCQGwa_L_KjICYGGbGy4n5u_-0Ygkw28wCt1HRxHKq0lx-ms6GIaIorYSypv3Tm_WW38A7_BQ4GRPuBDYrI7zYnOz5zHd/s1600/Netherlands.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
      <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Russian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cru&hl=en'); return false;"><img alt="Russian" border="0" align="absbottom" title="Russian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG-mFM0GT7dpNs7vcGgTbvjlwkJk0rOffvQqDe-Zo7pM5E1gGv1tQS7Bpx_36s4H4ECjDwUaz2uoug2PMfd4ir-nelYRPce6aTnUGPuZ2SpqAR5vux3OaldRsx7Mtf6Mt8l11sQxKS_vBG/s1600/Russian+Federation.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Portuguese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cpt&hl=en'); return false;"><img alt="Portuguese" border="0" align="absbottom" title="Portuguese" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhij_6eLRV9_6rfHF1XBPHAL-DGjHbnuG3cApxpsSvZUx2xv7xry7s1R_5qGL42FFmTyI_XLxF7ORi6xdm5nMJnY0tDmkujTiMl5dJ-IiP9ZoZOdYusKQD2jXcsthD0iU7rQo1x9mALIt0p/s1600/Brazil.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
<br />
 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Japanese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cja&hl=en'); return false;"><img alt="Japanese" border="0" align="absbottom" title="Japanese" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEnFpE4L53ByzemJdo3-LTQt8CB6BXzyNNgyLX_rwM3BNvmb6x7WKtdE9ah7dvUUu_WwqxBhwVcsZ30vJzhCmVQSH1dEgl7GeeA6a5YGMrMDYcusPMj2CXqXPu_aSNPx7cFTETfPgXr1cZ/s1600/Japan.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Korean" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cko&hl=en'); return false;"><img alt="Korean" border="0" align="absbottom" title="Korean" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdG00jHbRvfbKcYA2Iu8MCz7Hyv1j9jPiTn45ZIuK7efnWXNUie8CWZ0f4sikXw4dcEKHcja3APuWauDQLfnIl-hhGJCLtAgVHLYyXnVrjvygYkk7DgSukN94gPdzpQ8jHQCTLjrRRGPHO/s1600/South+Korea.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Arabic" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7car&hl=en'); return false;"><img alt="Arabic" border="0" align="absbottom" title="Arabic" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglY_SoFje6FSI1hFwQbqyc1YAmxvd3db_Y6LUr33ATuLnCRthChGcaDXfmlN5wHWD07jRcXbaQkafsmnvfSdcRLyfg57waoqWhSsvBQsMqQFcLeDAKe41QB0Umxgbb7R9yxw7kDplhIF-y/s1600/Saudi+Arabia.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Chinese Simplified" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7czh-cn&hl=en'); return false;"><img alt="Chinese Simplified" border="0" align="absbottom" title="Chinese Simplified" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_RbpquGjE3aOnpwI_jFpTDmHcW60KdeitNmn9jONTfN2FwAV3aaIMzvgsqFhxHpsEzO4P5VZRywlucaNKMTEGh-eNq_pQ1t2Y3CRmnF_W-x4Ah1BJQB5_PJNlsOyYXVxiVC-2JmIrInp9/s1600/China.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
    <p><a href="#" id="example-hide" class="hideLink"
    onclick="showHide('example');return false;">Hide</p>
</div>
     </div>

Step 4. Now click on Save

google translate, blogger widgets, gadgets for blogspot
And you're done! Enjoy (:
Previous
Next Post »