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/AVvXsEisuKEpIA_7R3neeiZCWQt_Tp7RAufPE19hSAJOzIcbErrjqEG1Ei29xUHrCRZqxuPsmw4xmmmbCriyod4ezP-zkKIeO-3yWvqTiRU-uP7FF__f-e1zSNfaTOZ_2hEPzg8yRyvj79D_kW9I/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/AVvXsEjgdfkmao8xz96njeMEHM4TpoweyH_bGrkPD86n1PCYz4dYCjW9yzTyfIJobVvzanG5A9aiF56XHQeuLYeuCkrUFNsi_4aeX9LGq_YMR63EZVyF-pFEgXegjcBnt3i_RYRvygbXZEceTdv9/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/AVvXsEjs71ilbKw_IafRAwRkqp5NTs3IulE20hoAgaCibtZ_zVeHKoJA8ntwUstSw8KtHc5rszAwBYuQ1rbB0aGPh7Hg3MUIHgdEnDXZZLYODXWoHGv9CG7Lq5UY7ggROY0Vm5lzeDeH2IIJtjQq/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/AVvXsEhy1xMg2-G0zqTMux_UbyJ9qce-14WArvJCRup2B0f6bVqneRbcDV3kbbi9jhrVfXHRapu9e_wU_IEMTF58Qbk377qu632zryfiK0U9VoITVfZ4eXkAkxOPvkDjlIKQSEAzMm7fZMm7mQqC/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/AVvXsEgB5AOWpMoo5Kg8_u6ECyoZIZAsybYw-wBbhRWITY3mkdb7M5kAfkOnhJ9wx2M91df_zpsTtZbt1C7sGq43x0TWtSp-MiDXxj-s3pv2_YFsmv4MeSQ-etqbYnTh6PaUueuXY_KSrxeVLe9a/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/AVvXsEi8PkvPZCflFhKqMtz-TcJ5w1lgFAYFOub9Xi2pEhpn4IgsvtR0AiZrl6mnfhpmpMaSiuIuXGfcVRd8QdAi2culUVxkvSsua-fp2YSMAeamiv6h1kn1OKN6hL7OCdL_l2qOj4Fs-tVt6VkP/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/AVvXsEh_peOTjHglbFKBq1VdfxOWQHGpKg5GBxDfs34wqyCTjAeyklGnkOCo6FvzK6BZVSzSA5hxtEFbv8kdz38IWONAg8dIkVxniXYIvp_pMm0LVtOXfmlwDWa2yV4Q9CFvPJcmqX6GwjWUP7eM/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/AVvXsEiSkP1-pzaRSpBj1UnWE1PDzrw8SkbvKZcnEpfKAx23MDIOZixkWSd80SgHT14X8DvKjvjsESebVv8yZFGKoCjQKtRRdI-WH3NWTJoQxsP3MCbsxgI2XmXCQxOLisV2i3yaAVcAszT2Gz5K/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/AVvXsEj5Txc2fZ4UxNu9jq6kcbQBBNpVdy60oBR_36q57bO506OLu_xgLXeZEfGQxuNIhY9X_PA5RDsC2MUj1hROnHcHQ7tSLEoe4bvgIfSh3C_BYLPM4fjOU503l1sCRpY-en5o5DcaUyAqM7ct/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/AVvXsEjRAGdC_UFXdCCwTDOdW0cyAFkeNGJPbCmbR0OXUgbPWkwizuO_1nYr1qEnhhrzj_N5wWQ-c2c0dKjVLI9jMKEGVhVVg_7W5JsEZFMBjUKqjKd1IYOf_CovU5782zOV9pQyEztQX2pqRKnl/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/AVvXsEiBQ0uwlDWXavsnnTHGxE5K6oHQlQtOEWSSvuDunzwpMQYj8J0tOoWTE2LjVQfTzqaN2AEbnuq8-q39JGTfFuhtMtefjKUBNneX_an3VYR-mP_s1ekrxfbOdNNzVYe1IUQCbjJNxKZyz0oE/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/AVvXsEh87KckPH87Ev_-c3258nc6XEXS_HN7lIkjpAO2eLD_BGf1L_oM0mVPpRPxDigHeHB2DG8ieLk0gkq8MIDyTeM2RwSxuxFJA5ECJxD3EmfSo3gAyUsUXQ2t1cHZq-VrFHnCJOqdrp_qxb7M/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/AVvXsEisuKEpIA_7R3neeiZCWQt_Tp7RAufPE19hSAJOzIcbErrjqEG1Ei29xUHrCRZqxuPsmw4xmmmbCriyod4ezP-zkKIeO-3yWvqTiRU-uP7FF__f-e1zSNfaTOZ_2hEPzg8yRyvj79D_kW9I/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/AVvXsEjgdfkmao8xz96njeMEHM4TpoweyH_bGrkPD86n1PCYz4dYCjW9yzTyfIJobVvzanG5A9aiF56XHQeuLYeuCkrUFNsi_4aeX9LGq_YMR63EZVyF-pFEgXegjcBnt3i_RYRvygbXZEceTdv9/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/AVvXsEjs71ilbKw_IafRAwRkqp5NTs3IulE20hoAgaCibtZ_zVeHKoJA8ntwUstSw8KtHc5rszAwBYuQ1rbB0aGPh7Hg3MUIHgdEnDXZZLYODXWoHGv9CG7Lq5UY7ggROY0Vm5lzeDeH2IIJtjQq/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/AVvXsEhy1xMg2-G0zqTMux_UbyJ9qce-14WArvJCRup2B0f6bVqneRbcDV3kbbi9jhrVfXHRapu9e_wU_IEMTF58Qbk377qu632zryfiK0U9VoITVfZ4eXkAkxOPvkDjlIKQSEAzMm7fZMm7mQqC/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/AVvXsEgB5AOWpMoo5Kg8_u6ECyoZIZAsybYw-wBbhRWITY3mkdb7M5kAfkOnhJ9wx2M91df_zpsTtZbt1C7sGq43x0TWtSp-MiDXxj-s3pv2_YFsmv4MeSQ-etqbYnTh6PaUueuXY_KSrxeVLe9a/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/AVvXsEi8PkvPZCflFhKqMtz-TcJ5w1lgFAYFOub9Xi2pEhpn4IgsvtR0AiZrl6mnfhpmpMaSiuIuXGfcVRd8QdAi2culUVxkvSsua-fp2YSMAeamiv6h1kn1OKN6hL7OCdL_l2qOj4Fs-tVt6VkP/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/AVvXsEh_peOTjHglbFKBq1VdfxOWQHGpKg5GBxDfs34wqyCTjAeyklGnkOCo6FvzK6BZVSzSA5hxtEFbv8kdz38IWONAg8dIkVxniXYIvp_pMm0LVtOXfmlwDWa2yV4Q9CFvPJcmqX6GwjWUP7eM/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/AVvXsEiSkP1-pzaRSpBj1UnWE1PDzrw8SkbvKZcnEpfKAx23MDIOZixkWSd80SgHT14X8DvKjvjsESebVv8yZFGKoCjQKtRRdI-WH3NWTJoQxsP3MCbsxgI2XmXCQxOLisV2i3yaAVcAszT2Gz5K/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/AVvXsEj5Txc2fZ4UxNu9jq6kcbQBBNpVdy60oBR_36q57bO506OLu_xgLXeZEfGQxuNIhY9X_PA5RDsC2MUj1hROnHcHQ7tSLEoe4bvgIfSh3C_BYLPM4fjOU503l1sCRpY-en5o5DcaUyAqM7ct/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/AVvXsEjRAGdC_UFXdCCwTDOdW0cyAFkeNGJPbCmbR0OXUgbPWkwizuO_1nYr1qEnhhrzj_N5wWQ-c2c0dKjVLI9jMKEGVhVVg_7W5JsEZFMBjUKqjKd1IYOf_CovU5782zOV9pQyEztQX2pqRKnl/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/AVvXsEiBQ0uwlDWXavsnnTHGxE5K6oHQlQtOEWSSvuDunzwpMQYj8J0tOoWTE2LjVQfTzqaN2AEbnuq8-q39JGTfFuhtMtefjKUBNneX_an3VYR-mP_s1ekrxfbOdNNzVYe1IUQCbjJNxKZyz0oE/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/AVvXsEh87KckPH87Ev_-c3258nc6XEXS_HN7lIkjpAO2eLD_BGf1L_oM0mVPpRPxDigHeHB2DG8ieLk0gkq8MIDyTeM2RwSxuxFJA5ECJxD3EmfSo3gAyUsUXQ2t1cHZq-VrFHnCJOqdrp_qxb7M/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 (:
Comments
Post a Comment
All types of Comments are welcome