Saturday, May 11, 2013

Memasang Widget Google Translate Pada Blog

Memasang Widget Google Translate Pada Blog

Sesuai dengan namanya. Widget ini berfungsi untuk menerjemahkan bahasa yang satu ke bahasa yang lain. Dengan memasang widget ini, maka pengunjung yang berasal dari negara lain juga bisa menikmati konten diblog anda. Selain itu, anda juga bisa memanfaatkan widget ini untuk belajar bahasa asing lho. Menarikkan?

Sebenarnya google translate ini sudah pernah saya bahas pada beberapa waktu yang lalu. Namun karena widget ini sudah mengalami perubahan yaitu menggunakan icon-icon bendera sehingga tampilannya menjadi lebih menarik.

Contohnya seperti ini yang dibuat oleh mad tomatoe








dan ini yang dibuat oleh kang rohman



Oleh sebab itu, pada postingan ini saya ingin membahas kembali dengan menyajikan widget buatan saya sendiri. Seperti yang dibawah ini








Widget ini saya buat dengan mengganti icon bendera yang berbentuk seperti pin dan diberi sedikit efek shadow sehingga hasilnya menjadi seperti diatas. Semoga tidak terlalu mengecewakan. sengihnampakgigi

Bagi anda yang tertarik, silahkan copy kode dibawah ini.

Untuk Google Translate 2 baris. Gunakan kode dibawah ini:








<style>
.translate img {
filter:alpha(opacity=100);
-moz-opacity: 1.0;
opacity: 1.0;
border:0;
padding-left:0px;
}
.translate:hover img {
filter:alpha(opacity=50);
-moz-opacity: 0.50;
opacity: 0.50;
border:0;
}
</style>

<div style="text-align:center">
<a class="translate" href="#" target="_blank" rel="nofollow" title="English" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cen&hl=en'); return false;"><img alt="English" border="0" align="absbottom" title="English" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3Ak5gZ_0FZurt9U-Nnl7pn5jJ9bptZL_OrziMEEN0BTP3jESvaA7gqRIKiQUFF3JX6LzMO2flrrgOrsazc4j9o5FeQ1uctaCq3eolqluKfzmbOqScGxgzmfHN1OsGShvCFTK1tQJ2Sp66/s144/uk-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="French" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cfr&hl=en'); return false;"><img alt="French" border="0" align="absbottom" title="French" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0ot3efQsVGo7gApKxkJD9twkh3cYy4ZafJgCKrhag-OqA1kxG-4fGquqIxS1vflPs94kvFhSNbIWm5iGzo5LS-zyUC60RWM00V5I5_hsNxinRU-F32qy_mHc0KmNO7gyMbvFPKQSLrX2M/s144/france-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="German" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cde&hl=en'); return false;"><img alt="German" border="0" align="absbottom" title="German" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRnO9CSQ0cgmQQuzzapS8ow66MYvTVHRHa1vq53pA8ldqJ8v2VmgZWDaHT96miP86aDkFMaMMufILQPRclvv5U8fVtT3pdj4aE2wE63ylpv78SURX3fFtcwdG4Y5669UdENUdiLN0JZ58o/s144/german-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Spain" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Ces&hl=en'); return false;"><img alt="Spain" border="0" align="absbottom" title="Spain" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-nrnLWPeHSb8IP-ZVqQb5mFKyTwdqe6b8NHAyG9OfXJQAW9-oxjqLLFWM3AUNF1smCMb-jVTXonTJTwT6vmnqf5nQfotqFYsF6lQjqQ0ApeoK4GpMMNCfHd61RSo6KaP5TI044VUarR6t/s144/spain-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Italian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cit&hl=en'); return false;"><img alt="Italian" border="0" align="absbottom" title="Italian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggrsX3YgkkPpM6gd2eMTdP2neEVsBtYw_-WsYR7MiY_WMPRPe177t0a50-Vyk56FQicvA-VpgC_coYqfu3FKJk7ukg8TFGLxgN5PYIlztAJKvqBV7G99ewJ3RonwuiSeGKo4kBcz3n18vF/s144/italy-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Dutch" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cnl&hl=en'); return false;"><img alt="Dutch" border="0" align="absbottom" title="Dutch" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqHV5Oy1w8zW15L_qqtpxZsLIPUUCDLNYxB4Ok-tqU3rDi3nSJ1wL9er-De39FdPy54GYv-1JvPIF1_LtM-dRULVH7_Z2oqh1fWHlwtKw9PeuKuSiQJP-rdCL21RI4feS3enuk2nOCY5FK/s144/dutch-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
<br/><br/>
<a class="translate" href="#" target="_blank" rel="nofollow" title="Russian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cru&hl=en'); return false;"><img alt="Russian" border="0" align="absbottom" title="Russian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIBGM45qQ5Rh0Kj2mCN-Je1g3Q324Ocldv0teCR7mt8ZPT2ySBcjWxo7r3wnexnzIIDu3G5FGcKm2mXodxFXJXLzqSMix9bNmkoS8xzHf-yFw5hi7y6RhpWWihjrkQ8Mnc2_132gSF-gz-/s144/russian-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Brazil" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cpt&hl=en'); return false;"><img alt="Brazil" border="0" align="absbottom" title="Brazilian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPTZxqNcxiaf3AYlLVBQQ9bCm-09w9PP4wSOZG34n6g5mt4v5VU_fECvuYLKlK8wx2TnG5MAxxkmNVnwDG8cHiJBZAM9QJdqtWNOblIyswlNBAV7WkW4mYAWuItITDpj43xYfK1lQnvDjU/s144/brazil-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Japanese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cja&hl=en'); return false;"><img alt="Japanese" border="0" align="absbottom" title="Japanese" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtkQ8B6LnsogXsJZOmMhP_R77CUG91ZPRTidlRpM3JTsioZDZm-aB4El__DGjfU8dHyPanJhogL1CKZ7YJ8oX0oetHNe7kN2UnbBzTAZiUl-Fvlux74wVnejrTNimjSTMzgz6_eohh_UNI/s144/japan-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Korean" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cko&hl=en'); return false;"><img alt="Korean" border="0" align="absbottom" title="Korean" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9fHm6hlWNYYAnExsVIyAj1T-w8EKeTTIG3HKmNbburuQRaU-2qNkBygOoR7VFWxb-q1ziicMKUTSr1nqzXCg3g9QcPu15llnCOQdlA1OYXr8PYdjmzSJq1vjb9PUjOt08bPlaCtgFuTcn/s144/korean-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Arabic" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Car&hl=en'); return false;"><img alt="Arabic" border="0" align="absbottom" title="Arabic" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipWazeRIuAxoSs-OszWrA3eTtgJEttvKCZondY56SMQKtr_ALNdAZWhDGpkl8RLzFsxIEq4SmcPJKNoOF9aYZUq_EEI0Trh1oFkv3uW7XmHK4U7TfZeNe2z7i-_mnXuDvcTkn9XixizrR5/s144/arab-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Chinese Simplified" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%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/AVvXsEhgT5yYBBYjQpnHb81ujrW4nIbYd-ezj5dFyWEIrW9wrQr0y03vbb8X-HfCpIX6AVeUyKLTN4X-LgLacUgLVs-6tFjXxSb_Zvk-Ur2gLEMGQ2i-vZYfQBDgp-uywZknpJ0c-aF4yWCX3hxf/s144/china-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<div style="font-size:9px; padding:8px 0px 0px 0px">
<a href="http://www.arabbianknight.com/2009/03/memasang-widget-google-translate-pada.html" target="_blank">Translate Widget</a> by Google
</div></div>


Untuk Google Translate 3 baris. Gunakan kode dibawah ini:

google translate widget









<style>
.translate img {
filter:alpha(opacity=100);
-moz-opacity: 1.0;
opacity: 1.0;
border:0;
padding-left:0px;
}
.translate:hover img {
filter:alpha(opacity=50);
-moz-opacity: 0.50;
opacity: 0.50;
border:0;
}
</style>

<div style="text-align:center">
<a class="translate" href="#" target="_blank" rel="nofollow" title="English" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cen&hl=en'); return false;"><img alt="English" border="0" align="absbottom" title="English" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3Ak5gZ_0FZurt9U-Nnl7pn5jJ9bptZL_OrziMEEN0BTP3jESvaA7gqRIKiQUFF3JX6LzMO2flrrgOrsazc4j9o5FeQ1uctaCq3eolqluKfzmbOqScGxgzmfHN1OsGShvCFTK1tQJ2Sp66/s144/uk-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="French" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cfr&hl=en'); return false;"><img alt="French" border="0" align="absbottom" title="French" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0ot3efQsVGo7gApKxkJD9twkh3cYy4ZafJgCKrhag-OqA1kxG-4fGquqIxS1vflPs94kvFhSNbIWm5iGzo5LS-zyUC60RWM00V5I5_hsNxinRU-F32qy_mHc0KmNO7gyMbvFPKQSLrX2M/s144/france-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="German" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cde&hl=en'); return false;"><img alt="German" border="0" align="absbottom" title="German" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRnO9CSQ0cgmQQuzzapS8ow66MYvTVHRHa1vq53pA8ldqJ8v2VmgZWDaHT96miP86aDkFMaMMufILQPRclvv5U8fVtT3pdj4aE2wE63ylpv78SURX3fFtcwdG4Y5669UdENUdiLN0JZ58o/s144/german-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Spain" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Ces&hl=en'); return false;"><img alt="Spain" border="0" align="absbottom" title="Spain" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-nrnLWPeHSb8IP-ZVqQb5mFKyTwdqe6b8NHAyG9OfXJQAW9-oxjqLLFWM3AUNF1smCMb-jVTXonTJTwT6vmnqf5nQfotqFYsF6lQjqQ0ApeoK4GpMMNCfHd61RSo6KaP5TI044VUarR6t/s144/spain-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
<br/><br/>
<a class="translate" href="#" target="_blank" rel="nofollow" title="Italian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cit&hl=en'); return false;"><img alt="Italian" border="0" align="absbottom" title="Italian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggrsX3YgkkPpM6gd2eMTdP2neEVsBtYw_-WsYR7MiY_WMPRPe177t0a50-Vyk56FQicvA-VpgC_coYqfu3FKJk7ukg8TFGLxgN5PYIlztAJKvqBV7G99ewJ3RonwuiSeGKo4kBcz3n18vF/s144/italy-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Dutch" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cnl&hl=en'); return false;"><img alt="Dutch" border="0" align="absbottom" title="Dutch" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqHV5Oy1w8zW15L_qqtpxZsLIPUUCDLNYxB4Ok-tqU3rDi3nSJ1wL9er-De39FdPy54GYv-1JvPIF1_LtM-dRULVH7_Z2oqh1fWHlwtKw9PeuKuSiQJP-rdCL21RI4feS3enuk2nOCY5FK/s144/dutch-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Russian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cru&hl=en'); return false;"><img alt="Russian" border="0" align="absbottom" title="Russian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIBGM45qQ5Rh0Kj2mCN-Je1g3Q324Ocldv0teCR7mt8ZPT2ySBcjWxo7r3wnexnzIIDu3G5FGcKm2mXodxFXJXLzqSMix9bNmkoS8xzHf-yFw5hi7y6RhpWWihjrkQ8Mnc2_132gSF-gz-/s144/russian-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Brazil" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cpt&hl=en'); return false;"><img alt="Brazil" border="0" align="absbottom" title="Brazilian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPTZxqNcxiaf3AYlLVBQQ9bCm-09w9PP4wSOZG34n6g5mt4v5VU_fECvuYLKlK8wx2TnG5MAxxkmNVnwDG8cHiJBZAM9QJdqtWNOblIyswlNBAV7WkW4mYAWuItITDpj43xYfK1lQnvDjU/s144/brazil-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
<br/><br/>
<a class="translate" href="#" target="_blank" rel="nofollow" title="Japanese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cja&hl=en'); return false;"><img alt="Japanese" border="0" align="absbottom" title="Japanese" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtkQ8B6LnsogXsJZOmMhP_R77CUG91ZPRTidlRpM3JTsioZDZm-aB4El__DGjfU8dHyPanJhogL1CKZ7YJ8oX0oetHNe7kN2UnbBzTAZiUl-Fvlux74wVnejrTNimjSTMzgz6_eohh_UNI/s144/japan-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Korean" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cko&hl=en'); return false;"><img alt="Korean" border="0" align="absbottom" title="Korean" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9fHm6hlWNYYAnExsVIyAj1T-w8EKeTTIG3HKmNbburuQRaU-2qNkBygOoR7VFWxb-q1ziicMKUTSr1nqzXCg3g9QcPu15llnCOQdlA1OYXr8PYdjmzSJq1vjb9PUjOt08bPlaCtgFuTcn/s144/korean-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Arabic" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Car&hl=en'); return false;"><img alt="Arabic" border="0" align="absbottom" title="Arabic" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipWazeRIuAxoSs-OszWrA3eTtgJEttvKCZondY56SMQKtr_ALNdAZWhDGpkl8RLzFsxIEq4SmcPJKNoOF9aYZUq_EEI0Trh1oFkv3uW7XmHK4U7TfZeNe2z7i-_mnXuDvcTkn9XixizrR5/s144/arab-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Chinese Simplified" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%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/AVvXsEhgT5yYBBYjQpnHb81ujrW4nIbYd-ezj5dFyWEIrW9wrQr0y03vbb8X-HfCpIX6AVeUyKLTN4X-LgLacUgLVs-6tFjXxSb_Zvk-Ur2gLEMGQ2i-vZYfQBDgp-uywZknpJ0c-aF4yWCX3hxf/s144/china-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<div style="font-size:9px; padding:8px 0px 0px 0px">
<a href="http://www.arabbianknight.com/2009/03/memasang-widget-google-translate-pada.html" target="_blank">Translate Widget</a> by Google
</div></div>


1. Kalau sudah, buka kotak HTML/ javascript lalu pastekan kodenya kedalam kotak.

2. Klik Save. Selesai. Silahkan lihat hasilnya.


Jika anda merasa letaknya kurang pas dengan kolom sidebar anda. Anda bisa menyesuaikan jaraknya dengan mengganti nilai 0 pada padding-left. Semakin tinggi nilainya semakin lebar jaraknya. Dan jika anda ingin mengganti icon benderanya dengan icon lain. Silahkan ganti tulisan bewarna merah dengan alamat url icon anda.

Selamat mencoba. Semoga bermanfaat..

0 comments:

Post a Comment

#

Random Post

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Blogger Theme by Lasantha - Premium Blogger Templates | Affiliate Network Reviews