вторник, 7 июня 2011 г.

Автоматический перевод блога на другой язык.

Встречал подобное на других сайтах и как оказалось прирутить этот гаджет к блогу проще простого (смотри набор флагов слева). Обещают что поисковики смогут его индексировать на разных языках.

Кому тоже такое нужно вставьте такой код на свою страничку, если есть какие вопросы пишите, постараюсь помочь.

<style>
    .google_translate img {
    filter:alpha(opacity=100);
    -moz-opacity: 1.0;
    opacity: 1.0;
    border:0;
    }
    .google_translate:hover img {
    filter:alpha(opacity=30);
    -moz-opacity: 0.30;
    opacity: 0.30;
    border:0;
    }
    .google_translatextra:hover img {
    filter:alpha(opacity=0.30);
    -moz-opacity: 0.30;
    opacity: 0.30;
    border:0;
    }
</style>


   
<div><a class="google_translate" href="http://www.blogger.com/post-edit.g?blogID=8847484052048236285&postID=5493073594518834056#" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%ru&hl=en'); return false;" rel="nofollow" target="_blank" title="English"><img alt="English" src="http://lh6.ggpht.com/_pt7i0nbIOCY/SWwjycGEnLI/AAAAAAAAA1o/7p6S3-tipsA/English_thumb%5B3%5D.png?imgmax=800" style="cursor: pointer; margin-right: 13px;" title="English" align="absBottom" border="0" width="24" height="32" /></a><a class="google_translate" href="http://www.blogger.com/post-edit.g?blogID=8847484052048236285&postID=5493073594518834056#" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%Cru&hl=fr'); return false;" rel="nofollow" target="_blank" title="French"><img alt="French" src="http://lh3.ggpht.com/_pt7i0nbIOCY/SWwj1AdOWZI/AAAAAAAAA1w/lWUkGNrOFYo/French_thumb%5B5%5D.png?imgmax=800" style="cursor: pointer; margin-right: 13px;" title="French" align="absBottom" border="0" width="24" height="32" /></a><a class="google_translate" href="http://www.blogger.com/post-edit.g?blogID=8847484052048236285&postID=5493073594518834056#" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%Cru&hl=de'); return false;" rel="nofollow" target="_blank" title="German"><img alt="German" src="http://lh5.ggpht.com/_pt7i0nbIOCY/SWwj4Ab0NaI/AAAAAAAAA14/3H56LPKtijA/German_thumb%5B1%5D.png?imgmax=800" style="cursor: pointer; margin-right: 13px;" title="German" align="absBottom" border="0" width="24" height="32" /></a><a class="google_translate" href="http://www.blogger.com/post-edit.g?blogID=8847484052048236285&postID=5493073594518834056#" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%Cru&hl=es'); return false;" rel="nofollow" target="_blank" title="Spain"><img alt="Spain" src="http://lh3.ggpht.com/_pt7i0nbIOCY/SWwj8KhadjI/AAAAAAAAA2A/GNyl8VBie3o/Spain_thumb%5B1%5D.png?imgmax=800" style="cursor: pointer; margin-right: 13px;" title="Spain" align="absBottom" border="0" width="24" height="32" /></a><a class="google_translate" href="http://www.blogger.com/post-edit.g?blogID=8847484052048236285&postID=5493073594518834056#" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%Cru&hl=it'); return false;" rel="nofollow" target="_blank" title="Italian"><img alt="Italian" src="http://lh3.ggpht.com/_pt7i0nbIOCY/SWwj-14HeyI/AAAAAAAAA2I/TN52dIqkO9Q/Italian_thumb%5B1%5D.png?imgmax=800" style="cursor: pointer; margin-right: 13px;" title="Italian" align="absBottom" border="0" width="24" height="32" /></a><a class="google_translate" href="http://www.blogger.com/post-edit.g?blogID=8847484052048236285&postID=5493073594518834056#" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%ru&hl=nl'); return false;" rel="nofollow" target="_blank" title="Dutch"><img alt="Dutch" src="http://lh5.ggpht.com/_pt7i0nbIOCY/SWwkBmKewNI/AAAAAAAAA2Q/43NEAnyNo1I/Dutch_thumb%5B1%5D.png?imgmax=800" style="cursor: pointer; margin-right: 13px;" title="Dutch" align="absBottom" border="0" width="24" height="32" /></a><a class="google_translate" href="http://www.blogger.com/post-edit.g?blogID=8847484052048236285&postID=5493073594518834056#" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cru&hl=en'); return false;" rel="nofollow" target="_blank" title="Russian"><img alt="Russian" src="http://lh4.ggpht.com/_pt7i0nbIOCY/SWwkESa-0pI/AAAAAAAAA2Y/i0X4cKgxq3g/Russian_thumb%5B1%5D.png?imgmax=800" style="cursor: pointer; margin-right: 13px;" title="Russian" align="absBottom" border="0" width="24" height="32" /></a><a class="google_translate" href="http://www.blogger.com/post-edit.g?blogID=8847484052048236285&postID=5493073594518834056#" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%ru&hl=pt'); return false;" rel="nofollow" target="_blank" title="Portuguese"><img alt="Portuguese" src="http://lh4.ggpht.com/_pt7i0nbIOCY/SWwkG0osjzI/AAAAAAAAA2g/_kM2A16R_Ho/Portuguese_thumb%5B1%5D.png?imgmax=800" style="cursor: pointer; margin-right: 13px;" title="Portuguese" align="absBottom" border="0" width="24" height="32" /></a><a class="google_translate" href="http://www.blogger.com/post-edit.g?blogID=8847484052048236285&postID=5493073594518834056#" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%ru&hl=ja'); return false;" rel="nofollow" target="_blank" title="Japanese"><img alt="Japanese" src="http://lh5.ggpht.com/_pt7i0nbIOCY/SWwkJ6RBJAI/AAAAAAAAA2o/lpsTh893J3k/Japanese_thumb%5B1%5D.png?imgmax=800" style="cursor: pointer; margin-right: 13px;" title="Japanese" align="absBottom" border="0" width="24" height="32" /></a><a class="google_translate" href="http://www.blogger.com/post-edit.g?blogID=8847484052048236285&postID=5493073594518834056#" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%ru&hl=ko'); return false;" rel="nofollow" target="_blank" title="Korean"><img alt="Korean" src="http://lh4.ggpht.com/_pt7i0nbIOCY/SWwkMouNMKI/AAAAAAAAA2w/L5l6J-Hh8XA/Korean_thumb%5B1%5D.png?imgmax=800" style="cursor: pointer; margin-right: 13px;" title="Korean" align="absBottom" border="0" width="24" height="32" /></a>
<a class="google_translate" href="http://www.blogger.com/post-edit.g?blogID=8847484052048236285&postID=5493073594518834056#" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%ru&hl=ar'); return false;" rel="nofollow" target="_blank" title="Arabic"><img alt="Arabic" src="http://lh5.ggpht.com/_pt7i0nbIOCY/SWwkPdkvXBI/AAAAAAAAA24/A1LSG1lcuac/Arabic_thumb%5B1%5D.png?imgmax=800" style="cursor: pointer; margin-right: 13px;" title="Arabic" align="absBottom" border="0" width="24" height="32" /></a><a class="google_translate" href="http://www.blogger.com/post-edit.g?blogID=8847484052048236285&postID=5493073594518834056#" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%ru&hl=zh-CN'); return false;" rel="nofollow" target="_blank" title="Chinese Simplified"><img alt="Chinese Simplified" src="http://lh6.ggpht.com/_pt7i0nbIOCY/SWwkSgrv4ZI/AAAAAAAAA3A/jQqZ1l6avts/Chinese-Simplified_thumb%5B1%5D.png?imgmax=800" style="cursor: pointer; margin-right: 13px;" title="Chinese Simplified" align="absBottom" border="0" width="24" height="32" /></a>
   
    </div>

1 комментарий:

Популярные сообщения