I'm successfully using google.translate but have problem with 500+ texts on
www.vocape.com (even some shorter texts claims they are 500+, may be html)
I tried to adapt the drupal module js to use your great plugin but I'm not
good enough at js.
May be it's very simple and obvious for you?
If you find and can fix here's the js:
if (Drupal.jsEnabled) {
$(document).ready(function(){
var link = $("<a />")
.attr("href", "#")
.css({ border:"1px solid #555", padding:"1px 0.8em", margin:"1px",
font:"#dff", float:"right", fontSize:"1em", textDecoration:"none" });
var wrapper = $("<span></span>").css({ float:"right" });
var languages = ["it", "ja", "nl", "pt", "fr", "de", "es", "en"];
$(".node .content").each(function (i) {
var w = $(wrapper).clone().insertBefore(this);
jQuery.each(languages, function(x){
w.append(link.clone().html(languages[x]).click(function () {
var n = $(this).parent().next();
google.language.translate(n.html(), "", languages[x],
function(result) {
if (!result.error) {
n.html(result.translation);
} else alert(result.error.message);
});
this.blur();
return false;
}));
});
});
});
}