Anladığım kadarı ile sen kendi sayfanda çalıştıramıyorsun (yanlış anlamış olabilirim kusura bakma...)
İlk once head taglarının arasına bu kodları koy
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script src="http://jquery-translate.googlecode.com/files/jquery.translate-1.3.7.min.js"></script>
<script src="http://stilbuero.de/jquery/cookie/jquery.cookie.pack.js"></script>
Body tagının arasındaki butun yazıları çevirmesi için yaptığın siteyi <p> tagının arasına al
<body>
<p>Buraya siten gelcek tabloları filan</p>
</body>
Son olarak sitenin en altına bodyden once bu kodu koy
<script type="text/javascript">
jQuery(function($){ //when DOM is ready
$('body').css('height','800px');
$.translate(function(){ //when the Google Language API is loaded
function translateTo( destLang ){ //this can be declared in the global scope too if you need it somewhere else
$('body').translate( 'english', destLang, { //translate from english to the selected language
not: '.jq-translate-ui', //by default the generated element has this className
fromOriginal:true //always translate from english (even after the page has been translated)
//unnecessary in v1.4, the default value is true
});
}
//you can generate other controls as well, not just a dropdown:
//there are new features in v1.4: http://code.google.com/p/jquery-translate/wiki/Extensions
$.translate.ui('ul', 'li', 'span')
.appendTo('body') //insert the element to the page
.css({'color':'blue', 'background-color':'white'})
.find('span')
.css('cursor','pointer')
.click(function(){ //when selecting another language
//in v1.4 $(this).val() or $(this).attr("value")
// is always the exact language code!
translateTo( $(this).text() );
$.cookie('destLang', $(this).text() );
// set a cookie to remember the selected language
// see: http://plugins.jquery.com/project/Cookie
return false; //prevent default browser action
})
var destLang = $.cookie('destLang'); //get previously translated language
if( destLang ) //if it was set then
translateTo( destLang );
}); //end of Google Language API loaded
}) //end of DOM ready
</script>
Son hepsi toparlanmış hali
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>title</title>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script src="http://jquery-translate.googlecode.com/files/jquery.translate-1.3.7.min.js"></script>
<script src="http://stilbuero.de/jquery/cookie/jquery.cookie.pack.js"></script>
</head>
<body>
<p>Buraya siten gelcek tabloları filan</p>
<script type="text/javascript">
jQuery(function($){ //when DOM is ready
$('body').css('height','800px');
$.translate(function(){ //when the Google Language API is loaded
function translateTo( destLang ){ //this can be declared in the global scope too if you need it somewhere else
$('body').translate( 'turkish', destLang, { //translate from english to the selected language
not: '.jq-translate-ui', //by default the generated element has this className
fromOriginal:true //always translate from english (even after the page has been translated)
//unnecessary in v1.4, the default value is true
});
}
//you can generate other controls as well, not just a dropdown:
//there are new features in v1.4: http://code.google.com/p/jquery-translate/wiki/Extensions
$.translate.ui('ul', 'li', 'span')
.appendTo('body') //insert the element to the page
.css({'color':'blue', 'background-color':'white'})
.find('span')
.css('cursor','pointer')
.click(function(){ //when selecting another language
//in v1.4 $(this).val() or $(this).attr("value")
// is always the exact language code!
translateTo( $(this).text() );
$.cookie('destLang', $(this).text() );
// set a cookie to remember the selected language
// see: http://plugins.jquery.com/project/Cookie
return false; //prevent default browser action
})
var destLang = $.cookie('destLang'); //get previously translated language
if( destLang ) //if it was set then
translateTo( destLang );
}); //end of Google Language API loaded
}) //end of DOM ready
</script>
</body>
</html>