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.
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/AVvXsEjcMBVKFoNNCfIaNluopIXZMGGzixB0oFrRqs36KXjgj7tutZA9StnsgLqPlcsJTHlsNAmPzEMiYjB1dSztSvYAjByIv7u-Hc4ltezWcoi0TOIkRydqWDJhIqUAA4t2TfoXDfV-5gzfaBGc/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/AVvXsEhSgiTE4ZjNekW8-P09O8Uqfu3ketb28sd5OfjAvfUWbWxrSBobRV0Zr5tDjIZT0y82tdrpfZKVC5z12_acpI1KZJcCOM2_pyPfUat98WuDV24w1zgcoJwu0zzt2KuKOtdP12oXeqcmLmm3/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/AVvXsEjAwyK6ZQI-O0uWYPsc3UET1ByRD792t5IOwMGDeFfah5kX6WGaC3x6Dbnfav9hTZr1PHKY0OHV6Nq7hHnxt5zvFJ0sTxHfJ4ah77A9IgZz0AYq6cVyCi4bDTx_nLHuvORkUpcF_aqylthU/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/AVvXsEiW3HGMJQS0ZzXKHcjicYWq2CDKg8VLTrxJAwUM99XfFVUIRhk9Kfs7X33gZypARRX-Kyyi9YEOOLvA_lg9MQngFsoeuhkhhg9ekZqdf4Ds97837cMwsRa131MBOLJQRcTv9bEMcOyUP6Dj/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/AVvXsEh1aVYE2C1NDn7Ih6_ge-yzBGxT1FZ-DRp3rI2xzaSUEc_96VVq9G1DY3JrCcFq73DoJs5hlhL_ZxhXRehv2pqAnGkhJUVsnmjkflmv6ZHKRqwo-Vq-xGLQT2xt2RcrnJlUgLDny9uwCe8x/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/AVvXsEi_pYlJe9fCoSO91aipfgtMOufPk4LC3ikh3ewUoRMgnnw7ETxEoDHz4RjQC59dOVzXDjKLsiofOX7lJUQt8sMhFYUT7JPFepzJvP0kQB3SWRJ2wf68s4nE_LKtg1mY_S95z03_lUCLJHiO/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/AVvXsEidqCCEROJuH8iXa5Q1mvMKJQjsCwL52x3EoBFCVvRqjI3Qa15Vut6-tie89_NxBfVTiQYoQuEerKIP_LlnJ40tWSMp117k5X_qkPknngrNggAqAIcp4ZKRM8rRRXBdXlObwlW533jZlwWi/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/AVvXsEjxda74mXEwrm_WVYj95UX9DpvSBkqUuPlMaBeTJjvl_VVtXYfE0Dvk5MpIT_yEPOSrgPvJmtF0OktdxBk9AeZ3iUZZpCSphI8PaxB99y8cJHzF8TC5ZyIs95C_MVh-WmbdbBR1dR_ojbsE/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/AVvXsEgHS8rK6_VNPp_lk-PG7kOt-QS4xmVdvL3vZY6UxDZ3ST_XJR5HqjAEBgLjwOMCcmsLpsTfJ694oCybRwwK558FU-kMysQgRP6R8jfYpd9CdocBUmUqGi2m3kNnlmLbyygrOnJfCewh0qFm/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/AVvXsEimTgwqbnY7MjZAnYe12fZQTUfN_O_xa5inNC7xdq85ANfrpulDlnlDVnW33Sn2B_4O0bCYoVhJTkVF5zzrmydYNp5y_amJW_lwe6pAfG4QglA-wUGMOFF10FNq0kW7j20JQ3OIZcXvFzBQ/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/AVvXsEhQhg_wncDCCChRLQ5WIGHpWv7o6wbdIiOM4jQuE5uRaLXBntiWkb9oxhXw3qljs38s0Uzhs8OpNX6LqHTZxn4q2Hsm25_lSDC4wVfcVu22vgSspNfL1yrLfhyphenhyphen2C1y9y4QJkAPi_0cTojnH/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/AVvXsEjC5zQhE1d90rBx9FM9J_d5ZGq-Dk_cghdX8cAvda-Qi4LkELINvNiRWakkFTlw8m54OTId5JdtXn61STNIOTN_XR6fF2zQLLp0dQVgY-vgwfPCN41KlIHH6p4YrLnoW4xP738A5ZoGWB7M/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</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/AVvXsEjcMBVKFoNNCfIaNluopIXZMGGzixB0oFrRqs36KXjgj7tutZA9StnsgLqPlcsJTHlsNAmPzEMiYjB1dSztSvYAjByIv7u-Hc4ltezWcoi0TOIkRydqWDJhIqUAA4t2TfoXDfV-5gzfaBGc/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/AVvXsEhSgiTE4ZjNekW8-P09O8Uqfu3ketb28sd5OfjAvfUWbWxrSBobRV0Zr5tDjIZT0y82tdrpfZKVC5z12_acpI1KZJcCOM2_pyPfUat98WuDV24w1zgcoJwu0zzt2KuKOtdP12oXeqcmLmm3/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/AVvXsEjAwyK6ZQI-O0uWYPsc3UET1ByRD792t5IOwMGDeFfah5kX6WGaC3x6Dbnfav9hTZr1PHKY0OHV6Nq7hHnxt5zvFJ0sTxHfJ4ah77A9IgZz0AYq6cVyCi4bDTx_nLHuvORkUpcF_aqylthU/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/AVvXsEiW3HGMJQS0ZzXKHcjicYWq2CDKg8VLTrxJAwUM99XfFVUIRhk9Kfs7X33gZypARRX-Kyyi9YEOOLvA_lg9MQngFsoeuhkhhg9ekZqdf4Ds97837cMwsRa131MBOLJQRcTv9bEMcOyUP6Dj/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/AVvXsEh1aVYE2C1NDn7Ih6_ge-yzBGxT1FZ-DRp3rI2xzaSUEc_96VVq9G1DY3JrCcFq73DoJs5hlhL_ZxhXRehv2pqAnGkhJUVsnmjkflmv6ZHKRqwo-Vq-xGLQT2xt2RcrnJlUgLDny9uwCe8x/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/AVvXsEi_pYlJe9fCoSO91aipfgtMOufPk4LC3ikh3ewUoRMgnnw7ETxEoDHz4RjQC59dOVzXDjKLsiofOX7lJUQt8sMhFYUT7JPFepzJvP0kQB3SWRJ2wf68s4nE_LKtg1mY_S95z03_lUCLJHiO/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/AVvXsEidqCCEROJuH8iXa5Q1mvMKJQjsCwL52x3EoBFCVvRqjI3Qa15Vut6-tie89_NxBfVTiQYoQuEerKIP_LlnJ40tWSMp117k5X_qkPknngrNggAqAIcp4ZKRM8rRRXBdXlObwlW533jZlwWi/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/AVvXsEjxda74mXEwrm_WVYj95UX9DpvSBkqUuPlMaBeTJjvl_VVtXYfE0Dvk5MpIT_yEPOSrgPvJmtF0OktdxBk9AeZ3iUZZpCSphI8PaxB99y8cJHzF8TC5ZyIs95C_MVh-WmbdbBR1dR_ojbsE/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/AVvXsEgHS8rK6_VNPp_lk-PG7kOt-QS4xmVdvL3vZY6UxDZ3ST_XJR5HqjAEBgLjwOMCcmsLpsTfJ694oCybRwwK558FU-kMysQgRP6R8jfYpd9CdocBUmUqGi2m3kNnlmLbyygrOnJfCewh0qFm/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/AVvXsEimTgwqbnY7MjZAnYe12fZQTUfN_O_xa5inNC7xdq85ANfrpulDlnlDVnW33Sn2B_4O0bCYoVhJTkVF5zzrmydYNp5y_amJW_lwe6pAfG4QglA-wUGMOFF10FNq0kW7j20JQ3OIZcXvFzBQ/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/AVvXsEhQhg_wncDCCChRLQ5WIGHpWv7o6wbdIiOM4jQuE5uRaLXBntiWkb9oxhXw3qljs38s0Uzhs8OpNX6LqHTZxn4q2Hsm25_lSDC4wVfcVu22vgSspNfL1yrLfhyphenhyphen2C1y9y4QJkAPi_0cTojnH/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/AVvXsEjC5zQhE1d90rBx9FM9J_d5ZGq-Dk_cghdX8cAvda-Qi4LkELINvNiRWakkFTlw8m54OTId5JdtXn61STNIOTN_XR6fF2zQLLp0dQVgY-vgwfPCN41KlIHH6p4YrLnoW4xP738A5ZoGWB7M/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</p>
</div>
</div>
Step 4. Now click on Save
And you're done! Enjoy (:
Google Translate Widget with Flags For Blogger
Reviewed by Unknown
on
13:59
Rating:
Hiç yorum yok