Thursday, 16 October 2014

Google Translate Widget with Flags for Blogger

10:52 pm

Google Translate Widget with Flags for Blogger

Google Translate Widget with Country Flags for Blogger allows visitors to translate website or blog to their native language. Google Translate Widget auto detect website or blog language and translate website to visitors chosen language.
Google Translate Widget support different languages with flags which are English, Spanish, French, Dutch, German, Russian, Arabic, Italian, Portuguese, Japanese, Chinese and Korean.

Steps for Add Google Translate Widget to Blogger

Follow below simple steps to Add Google Translate Widget to Blogger:

Step 1

Log in into Blogger Dashboard. Go to Layout than click on “Add A Gadget” link as shown in below picture.

Step 2

When you click on Add A gadget Link a popup window will open and click on HTML/JavaScript as shown in below picture.

Step 3

Now copy below code and paste it to HTML/JavaScript 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/AVvXsEiCKmAcbW9KZXqRD9CvtdQag4iY0T3HUbChY0ssoKMVEC1N79FKUVJhkUGaRq4Ei1zh4SZUc32w6uFvUFMGMhkujbk53ARY9EMdYHdiTWdWmjtfv0zNut_qcPDzcuu2kTeDFnSkCytQcHMH/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/AVvXsEh_OuZAhz4F1HD3U7yQzL5dmOIh2EpxhS5LO2jWkWqeBS-0H88dbXMbtwzK2Phmgb9C9tS0QOIbuLtb4K4RVN1TTHLO2QM00hpWwkf6GB0j4O79SiDWwYmEvDR_TtKvvR5fopCMDPS4dLfe/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/AVvXsEj5OBhFou0zZ_yTinflCuxV4r5yUDhYqzL9SF-DMEX_Vzw1BHWPpck2g1KtyCIRv3Pm4k3ZPgdHs0faBDreAVxiGjoLEb2nhlStNcvr0BHYKmWTcC0yG3vRpFFpzYNt-a_S06cCKXkEy1x0/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/AVvXsEj2jbCbQmJNg1lKgmgbFGC9DYkmM6DofJFopdv_pjMJsWL2xrfixIZDMrXNOWy75Jr4vWXYWVevSJCUUe73IczuIxTRcoEMtpGtfaA9M2gtGdaueOTn_uC7qlXThnbvfRIl7pHiysd7mto9/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/AVvXsEg6KE0SoOIt42qyHbV0QBL1Pq9hCUmwMiC7F7wdXsLb9oxvzsGVZkI_2atK-s_VWKXPVm8aRwqY6KTSZL1iEUMbW6pMWbjcejLfdDq9ls1XnawBPIiq3PhBL3nLLotw6zsnZEGF3ayNa641/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/AVvXsEhE-ei9ferTveAEG42tZSaV_icr3LGpbNTTsmBdWCEj4ZQTsgiq0uNLti7GkPHSn301KmbimK87aPzAmeME4f9SQtXifMZtj0zHm9_ruWSyeIgYH30rFez_HZbVq-mL98Ro5c0uoAvoBGYg/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/AVvXsEgltlMRYWDg5yxFr4hxGnbIIPXVNgM9gU3YTgDYTPhzAuQgMw1uEW8D3HkYwbC0KealeYdBvnznP3JuxwMm6-4x3Ed9BkdU6VkqrCD6EWNSnQqdUbCi_BGtHKXX_87UUzEX0d28oqXW-hXA/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/AVvXsEhZLXPbLVyw4FkJa8poo5NnbNOqDlrs6lZhxSxCkUVzGyImwClCBvxzYGNbzio1POqpBSgVhEjydFYOKhpI6JRQEy-piGnSmGoQDBbJfFpkwCLP7ygR_ypN8vZZ95gpsH7e43iF5LiDrLWj/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/AVvXsEjZ6PlA5jd17PtkM7ReaBwyCbsiIYQBkbb_N1Zj2O4g7NYGfV66FnIN5t-aexr9JxurDtZhluWWCYLgsbg8jd4JL9Lk0QA1Z52_XuoZhdcyaxRCIiJmyHxlAp3HkCBHZ2iOltUHzojna1lw/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/AVvXsEjKBWoUGFj6tuTsMkm42afX05GXzbp8FdIlKh2J1gMB4OkidxVKaX3GMRP6itOC_kwGb6NXUMELEjoF1_zWKYyB7P4Xf6vcLeIQSnL4EnuhK-Sciyqg8JN6CSn-ZIXylJ7FYzP-ZwhDgnso/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/AVvXsEh3qwIim_2Q8Cop7bUaf4FxOGWv8JjIUkPJ2GhYnxNEwUOlkY3wDMa6pV9zjgt_zSE3soczwB-kS2Rf0pvMZEN8jy0hEoWlmDbNO1wKb2ROhxgSe3KvwwZCeAT439OTX5DWfubXrhHgwSsP/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/AVvXsEifTgAIP46zqHIms3GQQHmi1pIAnoPiF0PDcy8TxlZn1ca94qQV90RFFCpUImaO0jGk20L5Ohrx2A_7NkS3G0b-0D1plwIY1b-1U_pF1u7V80CBjfQ5bdQeVtq15YndOZKW4DtCx9XwCK6y/s1600/China.png" style="cursor: pointer;margin-right:8px" width="24"/>
    <p><a href="#" id="example-hide" class="hideLink"
    onclick="showHide('example');return false;"> </a><a href="http://www.bfaqeera.tk"><font size="1px">Blogger Tips&amp;Tricks</font></a></p>
</a></div>
     </div>

Step 4

Now Click on save button.

You're done. Please refreshed your blog to see Google Translate button on your blog.
Thanks Regards Bfaqeera.tk

Google Translate Widget with Flags for Blogger

0 comments:

Post a Comment

Join Us On Facebook

Please Wait 10 Seconds...!!!Skip