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/AVvXsEil4jr_tptfwk1RrV9cc6EsXiPJrMSH099t0g5u44u0uWxUWrBAEcJsBjy4CRH0LoH4u5j1-1vv6Kyde9ZlYQyEleXmabW_VrZ0X2cZTJ2ww58pTQcqqUUi0EhLiNvkDUMwHrK_L6pRWFff/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/AVvXsEgHSqxBWed3_Nit7IetU02X0DThT2aUVDCwPIMOP0NufmJREr4AgtToxScmBqMCu5Y07iext3_ADo6RJ546xBnw5FVlslEEmJZYhTfH2Sx-8HuXfunp7cUm1Pduug5V-QuVHDt3FJTPAQo_/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/AVvXsEgU3vRrtL3ma5BQz8rGid2CCOxEWNFccejGUNRUPPo_9WAUNdFKJpKv6hBRAF7TX7VyvEPyikSVfK8AiPAAUqP5ll9khcoPIYgEuxvZbmRmfjY31RjfiSlIycSvbk1bTQEiH8atLxeh_ftL/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/AVvXsEjUi3b6bAhsYeWts-RWi4pTiJ0ddDLlV0OHB_iX5DgOB4CPXfWyxPnsK2ho-wDRp9R2FgMJqACD32UTykZHZodo9-I2RSYpL9j6yt2oLUVaai04gWGQyHZBtq0efubS9JM0vmEBmaJc9m2D/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/AVvXsEhITSutxTCF5-IRoH8krPWAK5qiJWOdA3cau1_Yj8DWDPw7ko3dhpwzuGVVnvHrMqF5qngFzQrTnGFSdUJtQy250oF7PqQ5t_Ps3d_TGneCqDWV1gefi4LNpvkDdPRouKqkyF9KkH1eBJn7/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/AVvXsEjSM14P7n315Q_8HV0POTGRhrg0PcXqnQ4g0GiXdxDtP2SEP4i3VaXCGMXiYl4kA6sZgUQDVVyiv5xFnsnaKSUgQyRzTMQyV93YpyBGDyrcZ3F4O3-VctQkZo9Kl2LYkli1q9Ddmbk8vX7S/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/AVvXsEh4FRemnh8PdNDLlzo0dRss34pWwp5rnYmecUYv9h-9Yt0fxrABjTYHvYI-QjQcSiuf-p-5hIjl-4AtdnHCyMK7qIcCze0HQ0NAATmoKdz11tbNhy7T8uBakNZzTIXLlCrE_LvmIF3cRk1t/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/AVvXsEhTuXJu5VDbN6Outan5GNd67kKaXVM73dZ9tlm9Ewq6Vz6Zmgb0t3KhpYAbiDvInwZTAbfCGWt0d1v28dWWtiP00Pi2wssOsiCI4M2VFr7oHCpKWs6RKHWQtSVqhyphenhyphen75bwRk4ed1tfTZeePM/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/AVvXsEi7Af5Ul3fse4bPoMbj9z1d7id5qSIwSh9w0snnp5pA8uUu73LvsIc4Wkx1_c5vpkBlqsbOUvp_-E6h2ARUgc_GAm2dSsjKwkOteGJ1AN1R5qieTRtsnx4CdI7JxTW8utwxOJyasTfItQR1/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/AVvXsEhHcCy2C7IlUSfUiHvlme8o3__DPK0Q2d3GPgncdqKW4wbG2E8LQLSwAhXfKZgPp-uaf3vp2MTS6VjbCXQ83IkYsqKZaMp3h8k9_pAJVJPbmeYYVL9K0MLkg-_cb3x2ydPo6fYLfm4SQzvz/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/AVvXsEjbA6SMtJGdApFSB4VEzPFhSyxDds49p0VpRYqdaHTDvCfspdIIpo8zL3L1N3Ru4Wz2aN_xpKPtKVTUPNZ77wD0PyUDrI48j2ijeD15aDv7jtkIlXShFzcX_HRHCjsMpoEKU7fza_Xm2Z4r/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/AVvXsEgQkmZ_dDBExZ22udWrj8XIM7uJpUDJRrKBle_mdfeQ_cP_2-RKCA0hHUF5PbHO8eRYzP_64G4HdHAU53cHyTten_7MfsEEyFgG_60sGv1RLVvA1Yxs70U84MLUEzhgki-n3ZylZT8R2aAf/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 (:

0 comments:

Post a Comment

 
Top