Traduttore google

mercoledì 24 giugno 2009 - 17.09

lordwaizard Profilo | Senior Member

Ho notato che il traduttore google non traduce più di 500 caratteri.
Ho letto che è possibile estenderlo a 5000, come si può fare?

Ecco il codice:
<html> <head> <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("language", "1"); function initialize() { var text = document.getElementById("text").innerHTML; google.language.detect(text, function(result) { if (!result.error && result.language) { google.language.translate(text, result.language, "en", function(result) { var translated = document.getElementById("translation"); if (result.translation) { translated.innerHTML = result.translation; } }); } }); } google.setOnLoadCallback(initialize); </script> </head> <body> <div id="text">&#20320;&#22909;&#65292;&#24456;&#39640;&#33288;&#35211;&#21040;&#20320;&#12290;</div> <div id="translation"></div> </body> </html>
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5