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/AVvXsEhxnx55v_LLFxKYOwvkHoDQzU1zW_lybyBYfgxRJmFSLC4H9RY5DU7kEDMqKZV8xlWxuJpqmk5x9V4w888ZAmILiuGk4Tud9mmR_vf67BrGfzy5dBEGIIcBvinkUClUSqv1TUh3SzXfqsjb/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/AVvXsEieaZLaSyDJOOvPuSPWffPB-pWIRxA2L4EulAmNdGuBGiir-uVkkr5Dop3_FabLmi-RPRnQhV9Ikvpau_KDpZXkxgiRjObn88kJD4JlmmTACKj3v8I68DNLpNaPODK0FhYuSztqEUh6gELc/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/AVvXsEiAmPtYZS6DyoIy0S_BfMocT_RH3Px9Xwzs3Lq7MZfpk4_P9qTJrd3vkb5IIrH3sboDbQ66rRUnpHZqEJoSIN9vKvyzz-JZVVkuFcIs6owNOxtEGPa6xRsT1YnQKgETFDKasn420YUG2Q8G/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/AVvXsEgYkL_9Cbbb74QQNzLB5n_Lfe3SIwYHqLe_OJBRcuFl6xbFdncCTjrM3iWJd_3Wm_2TUxul3MM2jSY7k9yitXKExJCsAne7AC2lDKdai2v-kW4JTp0clt-qvcxnhjk8ePJyneQO_v-k9Coc/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/AVvXsEgWPJ_pvkJTC43ByVdgP3iyETBOjwIxQXmhu82ZAGXOoTBZjMltJvn-VKxLvjgG5Ha-yZHlh3fJn4B7AlNE8Yxo6Guwvhx9EdrE_r1Hx732_thc1omeinVzIZr_szfvyewct2ainhagQ82w/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/AVvXsEipIycuLYUkBqgwB5WTcqbWp53UOxQc7hq0U2_fam7HvczpaqEga4FSA-hGJiHCDOy0b_Mu5OibmOJ2hu52QVxL19_R4pQyUXPIxM2X-VehTSwu9TuAm9qV23yZxSLlN63DWlda7wj_2Xel/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/AVvXsEioTnjrCUkf-b917N_OgBImSQuoxGPs9m2NfWozR0wWy0ve7j3UUKDSrtdYLt8TqtEaCxjJDyTydNb8w4-wsGaBQ4o-GksKuyLy3znJOGM0cvQQVkKlnqse_m5J4PHbUy2wO6nQz4m7cMdu/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/AVvXsEilOAjtCQNnPHoW4kG_xL_cWrPvgYOX661AeSBjEAbTrTyxa3iZECpgJPh6nd8m7YQPZUsnFR3ohTlnHydTHl6j1ewMu3CvJhImFobW-oDJSNhe5-GtIMiBxtsTYMZwIn1M3IgdGyfCnd-O/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/AVvXsEgEsu6h7Vu-SpoxSKgC_J1eMyNnlyO61ZEct1IqKYcR_ka1LGo6d77dtb8xfzpNpkm5Jq3XpqYMUJm5SYVTLxAaJBRUbrgZhWUkR-AHji3RyUZZLPWLtksI0W6XtB4MZ5-K4McF0EX5jXDg/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/AVvXsEhiQZOuBX0Rg13O9toWJ3n_tySzsfjqUJVIpw2SKE8Nl4aex7DKL98uaFEca-z8daery2usZLgKGw_9BeHe7WghLGB7dRFPu3z0D_fhYoTciWM0r2mvYLjhxLHSvXtDtvL78UZgxQOwVaKh/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/AVvXsEie257MzaVb3KyFR0QYNlkTWlux9PnXcE285iOvT6Ia4DXI13swVwYNo6whNpyOR85aR8uCzPsUaBFb4D03ecy5gFqU6HQFQ9UoroSuxi95y_5Y4H1BsPtftQCMq0I7Jfb03eo-9lt5qBh2/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/AVvXsEjJCIwz3flkHPKjZVbpc3p960yFTKsxsYhZxJfha2aQe7NTFgwNt5Pg9KaV8porIviJKcoJQJ9wOmVN3mLKQI-19307xoRykTnPGnNxQJ1Kcb3VZOxoZGXS5NL3jnaCfT9ywNyFhnvcDONw/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 / </a><a href="http://helplogger.blogspot.com"><font size="1px">Get this widget</font></a></p>
</div>
     </div>

Step 4. Now click on Save

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