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.
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:
Step 4. Now click on Save
And you're done! Enjoy (:
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.
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/AVvXsEhv00eilCP2QB849ylohXOM7L7j9KlAv3EH1dI8YuAf4vD3ZrF-S86dtlv84FM_DxGMzo_DAyYT6CDv9ESa2_yQ5AhBxXxAOOlStxgtigOe7isvvbWSf6yDHgFaIxjlo8x0KgsS4FsuOUye/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/AVvXsEimTZqfGj1ymDt2BILxVvFoMZ7BJV7ADCrDKR5mILKSq49Ev6yFxOzh1gCYnRGSE6GiBSiMJqoVN9KG8dyLcZE1dlf8zukIl7HuIfRkfZ5zoItKXxx3PB-7HTv3taqj1dFuFkRm0hQgVWEh/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/AVvXsEjNS9aA4-LEarLp9Dakulayjp3ph7o39h5Gqhnq_9LuYGgMEsvs-Fe49HMuf5RnoOsVOSMWihc1dcFyFUregjGF9jVMW3oIwG64S4Laie0FWDU7uMphuZXtpYqFTvyZ2D7UuZmHUHW1DQxW/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/AVvXsEh5nE-pAKJe6W2QcW1U7Useqn0cS94rJi4apNNGXM5Mf6hkZIACQNmG8queH02UIMWBoGqimq9dye_SLyb6brSUioYvVHbr_U7ve8LDgbGVsa2HXrdAyUXC9SnWnsUwi8TRu7IaZWIjrNgB/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/AVvXsEj0G00KujPbnkHQ89oErclSaqgstjU0ZUpdFSoZtIzlmcqQh2h3kN72OkMoGK8CROFlEwUbWSQBMboUbHu5HO3GuLq8nc3AtqbIQJR-OLbHouQHH5jG1GV49x4LWXOjuOnituefhilF2rYU/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/AVvXsEhLDP-ngY5lilVlpZiB_1apjgyMR8UG8Ssb9QYU6aneSRiDEb-l4jrrjOP8QyZ7hJWqyXionymOaAbcVj7bWnfIkVGTYO3G21dHz8zzrlmrQbrfqOkSajwEJPUmAQPoWYi5YKljp3u9udAm/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/AVvXsEjKr_dhXd9xFk4sludy16P_15bCVQ1FBFySWKYoqqOgD2iLYqWyJqIgvQogDM7Ar32M42x1GsckuhyDpV2WVmjCf9QiCgpVjdrQnLK8jev0JQMF7sAZsbpI1b2uaZZVQESazOnpxBWQ-a-C/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/AVvXsEiBk66q7wqNBdThLaxfEc8dRObVwgBoozctBNUYNEtT25hFIaPzQHzbH3oq8AbRsGj6QTH1uFUzxDREoPkolDPwQ9K1dJ6wfQ30mUbU4rntjuA2MBBC9Eqz5n16uso6bCri-JRuwqwKerXj/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/AVvXsEjPyHpIhYVn9it4QuVgtVHq5bHo59OyiZ3LaoD6SB13MRS1a2KdkzZW6RQ8Td6Vgmufvx7ZS7yfi2l-D5FfJTrQONycA1ar4Yq3Sy8C04BT92PsUls19uSTpeDLgF0wovBUHTrpdJUvbtCu/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/AVvXsEhXQfNlBYhOxXGkxygHCI8KLrl3ULQOOiTrDi80AAtXVCwYpli0yQaUYoNskofJ8-I8Fhsu42NzgNlVicNsYdaC5h4byCIknv7II2qQ6qrVt8SwdozDEnBLrOOkq7w6vu0Ne8HJdPlwLATy/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/AVvXsEiZWaVKgLVgtZZJ9LRgxhxTZ9dBkMRGyg4yRhuN2sUVTUEXKGj7m3InwW4vOYCoSPZWlWYbFJnqPo84UA2cDXC9lFeScAGONAkzgHsMLq-EozB1PBOwcUTTW3cQ128551USMlC8I2VrnusC/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/AVvXsEiVoGooT_YhUUjzRU_yMjHcrl2k0iDOpXwmiNSJ6ay0vcPod7DSBEnboJ2_leF3yjzBBWHSTM-QYxDS9QNcyY9RRCOCzhc_nS-jioGvo3fBirUUviY062bLaloJvdW9eOSdOigiJxJyywab/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/AVvXsEhv00eilCP2QB849ylohXOM7L7j9KlAv3EH1dI8YuAf4vD3ZrF-S86dtlv84FM_DxGMzo_DAyYT6CDv9ESa2_yQ5AhBxXxAOOlStxgtigOe7isvvbWSf6yDHgFaIxjlo8x0KgsS4FsuOUye/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/AVvXsEimTZqfGj1ymDt2BILxVvFoMZ7BJV7ADCrDKR5mILKSq49Ev6yFxOzh1gCYnRGSE6GiBSiMJqoVN9KG8dyLcZE1dlf8zukIl7HuIfRkfZ5zoItKXxx3PB-7HTv3taqj1dFuFkRm0hQgVWEh/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/AVvXsEjNS9aA4-LEarLp9Dakulayjp3ph7o39h5Gqhnq_9LuYGgMEsvs-Fe49HMuf5RnoOsVOSMWihc1dcFyFUregjGF9jVMW3oIwG64S4Laie0FWDU7uMphuZXtpYqFTvyZ2D7UuZmHUHW1DQxW/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/AVvXsEh5nE-pAKJe6W2QcW1U7Useqn0cS94rJi4apNNGXM5Mf6hkZIACQNmG8queH02UIMWBoGqimq9dye_SLyb6brSUioYvVHbr_U7ve8LDgbGVsa2HXrdAyUXC9SnWnsUwi8TRu7IaZWIjrNgB/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/AVvXsEj0G00KujPbnkHQ89oErclSaqgstjU0ZUpdFSoZtIzlmcqQh2h3kN72OkMoGK8CROFlEwUbWSQBMboUbHu5HO3GuLq8nc3AtqbIQJR-OLbHouQHH5jG1GV49x4LWXOjuOnituefhilF2rYU/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/AVvXsEhLDP-ngY5lilVlpZiB_1apjgyMR8UG8Ssb9QYU6aneSRiDEb-l4jrrjOP8QyZ7hJWqyXionymOaAbcVj7bWnfIkVGTYO3G21dHz8zzrlmrQbrfqOkSajwEJPUmAQPoWYi5YKljp3u9udAm/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/AVvXsEjKr_dhXd9xFk4sludy16P_15bCVQ1FBFySWKYoqqOgD2iLYqWyJqIgvQogDM7Ar32M42x1GsckuhyDpV2WVmjCf9QiCgpVjdrQnLK8jev0JQMF7sAZsbpI1b2uaZZVQESazOnpxBWQ-a-C/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/AVvXsEiBk66q7wqNBdThLaxfEc8dRObVwgBoozctBNUYNEtT25hFIaPzQHzbH3oq8AbRsGj6QTH1uFUzxDREoPkolDPwQ9K1dJ6wfQ30mUbU4rntjuA2MBBC9Eqz5n16uso6bCri-JRuwqwKerXj/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/AVvXsEjPyHpIhYVn9it4QuVgtVHq5bHo59OyiZ3LaoD6SB13MRS1a2KdkzZW6RQ8Td6Vgmufvx7ZS7yfi2l-D5FfJTrQONycA1ar4Yq3Sy8C04BT92PsUls19uSTpeDLgF0wovBUHTrpdJUvbtCu/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/AVvXsEhXQfNlBYhOxXGkxygHCI8KLrl3ULQOOiTrDi80AAtXVCwYpli0yQaUYoNskofJ8-I8Fhsu42NzgNlVicNsYdaC5h4byCIknv7II2qQ6qrVt8SwdozDEnBLrOOkq7w6vu0Ne8HJdPlwLATy/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/AVvXsEiZWaVKgLVgtZZJ9LRgxhxTZ9dBkMRGyg4yRhuN2sUVTUEXKGj7m3InwW4vOYCoSPZWlWYbFJnqPo84UA2cDXC9lFeScAGONAkzgHsMLq-EozB1PBOwcUTTW3cQ128551USMlC8I2VrnusC/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/AVvXsEiVoGooT_YhUUjzRU_yMjHcrl2k0iDOpXwmiNSJ6ay0vcPod7DSBEnboJ2_leF3yjzBBWHSTM-QYxDS9QNcyY9RRCOCzhc_nS-jioGvo3fBirUUviY062bLaloJvdW9eOSdOigiJxJyywab/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
And you're done! Enjoy (:
0 comments :
Post a Comment