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, Brazilian, Russian, Japanese, Korean, Arabic And Chinese.
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/AVvXsEgXgixjp-VSzRaUQZtb8HYcvUkQ9BkXKg__qnUyNuxLxrzt-Ao3MO2dJPlypomtWdNpZX-8QNR6biFQaUZtHBxmI3HOmxNS0yP9voCoglZ8HD505hdQhNW-GhuNBiUFaFypApNIEpq-HZFB/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/AVvXsEhQc7YH197phiDgykmU4k2x6jjIOvl4a5o3WCoObGLtsyeOMQbkm6RdrRIOkm5JeYNVdxKxP6W4Chxhl_yC5R4WGoi4zW9HXyBZIGhRtirN07WK_XiI_FnH9Uf51p0DPaX8AcyKaDTv6Baa/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/AVvXsEhXfqPXOIklG73POfIrijGHNBG7hbdNwFw-UqDir7nePNCPRdpxvwUGgdAdsANQWMqFZ2zmOEIihbZ1L67PvQZ2rrXXCdbAfYYuYSiJeOAkT_s69QCIuRFxGdGG6pPfiTDcjs81E91Q8b0M/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/AVvXsEgLOc3LTQXhHjBEyDNeeBEo7NVxmVSnAcCa0T-b0JcW_oiuE5Oo3CmJRTaWbSXO9LzU-DBGvoPgalIHg7hLalUoQkaPSQokacstX-hxucrz42cvDIPD4ntNo2bTaauGM3d52cnVJ0gLrzT4/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/AVvXsEhkfILoIIT04afMc1XuMOCHsgJq9LMEY2EeQpHccAkHxOLeUd3magfgVdrhyHbc7oR0muBttammR_EpY95SyQARxIaA4nHlCaPx1vE307wIBSkWDzSkZMVwQiDqsFMEMj5QEe0WKWZ9g4_6/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/AVvXsEjpj8Mm9H4oK1i5BvIja2tAq7QnYWBoclBih9JEdAUns4H1lfBmVA6O1k8R3Rj1fLt4k2eVr1TgFt6JP2q_j6WEgcuSSHFZqnagF65ZnDxZVmCOSofKXE37vwtrLjj9Emi9SF_GfI39TDoF/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/AVvXsEiXI3_nxW4pXZGd7W3YBE_YZ8l6hYe_aDp0jrWtaf1fe0tc_27LTeH2DFZSr4oxz49cwS88EP2MqS62l3e1YFtw8BzSdFoJSTIpCN-GjBx_jXpuBgsffnyNL0Fy5ZW7-p7x6LbUwaKF1nIi/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/AVvXsEi2welyqOMnDayVNb84KLAz6LRBlwW4nW9TuHDw_RILO_DghMgU6P8HUrlqKwZS885S0BSZF4ZmqKBTx9xk1e4_bGvd5hOOlUFb6YpQCfGTv9LtHVtldsRHOPSrZRT36g58nh3eiLUPH4dt/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/AVvXsEiq-I1PNbBZe7pMX05yEqL261KJRYoU3u42FSn5H5bYTYar88XYXDsSAlNs1jvpAFpEPKvFT0aop8uI95OlmpAt7R-jzRPwn3NKJ8od463Qp2VFztIbpw3MHgrZXO93kBWtZh2F0hRsuU4R/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/AVvXsEj6nj1qcwtO_AY8df6i_I7fqOF9jhd_YdS8-nSqoMYxn0YVaErPoqrw95iVWhS_vHO9Sf60KsmrDpLTIp0YDHpZZ6m2JBvcbbuTIDlyzmxSuC-OYZ71hocgci4QIyMCM8VqZpXwiPP_BLMp/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/AVvXsEi0x8cu16OcgtHdjp2s4I8BVkeX0WUNY3r1yf9JxLwex9b7do5iRoHPdEYL4ylldBsvrgJrSnuTuEgwCwtIvjqUoLkMyEIJ14C2q37NFd0GyttSH4FpCobcWSi-k8_l7sE59YpEJLiyE05Y/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/AVvXsEj8jbO1lZl1uG5PRVOP-yfZt7TLXqwqfRfq1UJrh55a_SHZ3yAwQ77jqnQ9xfshn51mazuN1nCL1tBzcVgLyowJ9LKp5FApbym_0K3YE1bp4c4Hye5tSlYDjd0Mq8ANAWn_TFyvggEQJ1O5/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>
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/AVvXsEgXgixjp-VSzRaUQZtb8HYcvUkQ9BkXKg__qnUyNuxLxrzt-Ao3MO2dJPlypomtWdNpZX-8QNR6biFQaUZtHBxmI3HOmxNS0yP9voCoglZ8HD505hdQhNW-GhuNBiUFaFypApNIEpq-HZFB/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/AVvXsEhQc7YH197phiDgykmU4k2x6jjIOvl4a5o3WCoObGLtsyeOMQbkm6RdrRIOkm5JeYNVdxKxP6W4Chxhl_yC5R4WGoi4zW9HXyBZIGhRtirN07WK_XiI_FnH9Uf51p0DPaX8AcyKaDTv6Baa/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/AVvXsEhXfqPXOIklG73POfIrijGHNBG7hbdNwFw-UqDir7nePNCPRdpxvwUGgdAdsANQWMqFZ2zmOEIihbZ1L67PvQZ2rrXXCdbAfYYuYSiJeOAkT_s69QCIuRFxGdGG6pPfiTDcjs81E91Q8b0M/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/AVvXsEgLOc3LTQXhHjBEyDNeeBEo7NVxmVSnAcCa0T-b0JcW_oiuE5Oo3CmJRTaWbSXO9LzU-DBGvoPgalIHg7hLalUoQkaPSQokacstX-hxucrz42cvDIPD4ntNo2bTaauGM3d52cnVJ0gLrzT4/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/AVvXsEhkfILoIIT04afMc1XuMOCHsgJq9LMEY2EeQpHccAkHxOLeUd3magfgVdrhyHbc7oR0muBttammR_EpY95SyQARxIaA4nHlCaPx1vE307wIBSkWDzSkZMVwQiDqsFMEMj5QEe0WKWZ9g4_6/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/AVvXsEjpj8Mm9H4oK1i5BvIja2tAq7QnYWBoclBih9JEdAUns4H1lfBmVA6O1k8R3Rj1fLt4k2eVr1TgFt6JP2q_j6WEgcuSSHFZqnagF65ZnDxZVmCOSofKXE37vwtrLjj9Emi9SF_GfI39TDoF/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/AVvXsEiXI3_nxW4pXZGd7W3YBE_YZ8l6hYe_aDp0jrWtaf1fe0tc_27LTeH2DFZSr4oxz49cwS88EP2MqS62l3e1YFtw8BzSdFoJSTIpCN-GjBx_jXpuBgsffnyNL0Fy5ZW7-p7x6LbUwaKF1nIi/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/AVvXsEi2welyqOMnDayVNb84KLAz6LRBlwW4nW9TuHDw_RILO_DghMgU6P8HUrlqKwZS885S0BSZF4ZmqKBTx9xk1e4_bGvd5hOOlUFb6YpQCfGTv9LtHVtldsRHOPSrZRT36g58nh3eiLUPH4dt/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/AVvXsEiq-I1PNbBZe7pMX05yEqL261KJRYoU3u42FSn5H5bYTYar88XYXDsSAlNs1jvpAFpEPKvFT0aop8uI95OlmpAt7R-jzRPwn3NKJ8od463Qp2VFztIbpw3MHgrZXO93kBWtZh2F0hRsuU4R/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/AVvXsEj6nj1qcwtO_AY8df6i_I7fqOF9jhd_YdS8-nSqoMYxn0YVaErPoqrw95iVWhS_vHO9Sf60KsmrDpLTIp0YDHpZZ6m2JBvcbbuTIDlyzmxSuC-OYZ71hocgci4QIyMCM8VqZpXwiPP_BLMp/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/AVvXsEi0x8cu16OcgtHdjp2s4I8BVkeX0WUNY3r1yf9JxLwex9b7do5iRoHPdEYL4ylldBsvrgJrSnuTuEgwCwtIvjqUoLkMyEIJ14C2q37NFd0GyttSH4FpCobcWSi-k8_l7sE59YpEJLiyE05Y/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/AVvXsEj8jbO1lZl1uG5PRVOP-yfZt7TLXqwqfRfq1UJrh55a_SHZ3yAwQ77jqnQ9xfshn51mazuN1nCL1tBzcVgLyowJ9LKp5FApbym_0K3YE1bp4c4Hye5tSlYDjd0Mq8ANAWn_TFyvggEQJ1O5/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
0 comments