Google Translate Widget with Flags For Blogger | KhmerueTeams Official

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:
<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/AVvXsEiEJR1-GinsinzRFK9rUgOup2VEZgFP76HZzOWHJHnm4vnJS3dVP5y03P35edB_dn4DX1T746I1uEFoWckBkL7h44upkCTjiBXjUaf92QyDR1aAf_tulM6a_Y79BEUW7XfpvFjs4xaJGJor/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/AVvXsEir9qRfA2fKFpn9bYqBnZR2vTNUCwkxoc5tb7wlIaGIRTs7CO5Q3NVb8r95h4CrCl7vvJddP1kIeB3daHq8IJ_OvJRr3dFJNPDPMW_b7Xcx_gHPP8cAq2F6jbhhZQK1WQ8Bg6JNc2H89xjE/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/AVvXsEjh7OdXuRzYjhKG4vazXCmBCywt3jTR5TD4EhsCLibf-93mbi5ZDGU-TO1EKDJ3vUNglHMuj4pla6qof2nptTHBrxqlgTJHlZNvClhXHSKd5IpmC2L79ER1x6c7N9Z3AOpb_CwcJBN3Xkxv/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/AVvXsEiL-Mc0kqyUw5TjgvKUdkELycC6laEGhQiFvT3BZUs6XCd6td00RLxzx_VUkMl5KZV6iRBH2yVa_HdZ7ZGcR_07SVrkqXF3cbnDCWU9Y4NLOE4A53lieEP2A41UFBRFX5bs8TKkKCiLaNyQ/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/AVvXsEh7s1NHmWcTHbi9OTb-Fz5TwlPF2RKJbgOJJ06BmcuRTwjtKP6ukOEd1G_tjrBc7gd8G_0EStwaiITuDMikQSGfjgHqa9Zm9AAXHqvxo_kd-1glILz-FAeFYB8WVgeSOucix9yuUdWKYyUy/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/AVvXsEhJGeEOxAUpm2QdPw-OnSGr7vuZuEYAmbSsGkqh0G9aiNilYOXlzyQH2hk-ie0zC47DBa2wrLwYQ5riD5pknJTVY14vyJ9bVrj6lv6k2OAj-f3t2N_VvlsZSND75Nv9YILIugorMv-0p_q-/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/AVvXsEja_18bJ7OaEa_c45n3_cJgUkiUpId09BCaEmha68qyvkW7gA6foWeOMl7ZGX7sOinU9qua-cPxJEZMq_hdUuZ5nh0xgUsEGx_LUjA8QHlehyphenhyphenkZZWTGOkfutVujjNIlNpL1wtaUnfLnn4Ot/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/AVvXsEhVB3fvU6z0s8qrQZVFxgeZyPpTsTzn53lfVpT4CedrEuyEOXVOUe3Tv-Rwuphty1ilz5SudOPtX-TEoZkwPrgGTl0XXTv2rKpKCTxxlWIquJTHCkEhShSUK2fePB98vXU6O23nos6spKLt/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/AVvXsEgGCLBTiE9jV6XPSSC6tThARgdF8lnJ2WqG2OZHJzg_YgrMkxF-7PT3dGios05ghAmagHyXwQDFZ3wBSDE4MCIkqEo3pajXBUgceZ87IznnOXzK4tlk2WYWw8bb-Ejk0hyFmfZrKmCcNm2k/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/AVvXsEif0bLTbIEl4OB6NT9qwxZDn6br8zlhRIjaDH7rpZ7rOL9WinVh1brjfquEjFyxDvRwTFHZ9v5Nn43xy1zLS5KaKwjLWLj-zx0oY-Kdz6WNDPrZkycW3FLH3HTIAhKReFTfNqTR7K4Cdhg6/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/AVvXsEh_VefoflyA72kDQMSCXbU2ZC5Cva-a3fKuU-I0ZSd-1qiIBHNcUOn0LGkajFn_3mZXxmxrKox8MNCANCwN_0Wlh3fd0L9xrz5t0mN8b_wbYV0l4QojCExg_38q7DVNHotQd3GQu8R4XVlm/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/AVvXsEivbqmI_G2TnLcqSWSoYvfmQhzj0bXjEOx6L4-CrJn7-yEwifWLp-W6tUEkGY875E9sh6lzehwmPBM9t6xm6Bqudlbwf4KV-kanncbr3ybLlHZZXQilpZmU7jXhiLKEGn6L9WF_JeydrU8Y/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 

Share on Google Plus

About KhmerueTeams Official

Welcome to KhmerueTeams Officials Blogger. I am Mr. Chhuye The Admin of this blogger. If you have quetion contact me : +855968555664 / +855976235033 or watch my video on

YOUTUBE HERE

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment