<form name="lap" method="post" action="">
 
Translate from any language ( with auto language detection ) to english:<br />
 
<input type="text" name="szo" /><br />
 
<input type="submit" value="Translate!" />
 
</form>
 
 
 
 
 
 
<?php
 
 
if( (isset($_POST['szo'])) && ($_POST['szo']!="") ){
 
 
include "GoogleAutoTranslate.class.php";
 
 
$g=new GoogleAutoTranslate();
 
$translate=$g->translate_to("".$_POST['szo']."","en"); // this string will contains the translated string in your language
 
print "Original text : <br /><b>" . $_POST['szo']."</b><br /><br /> Translated text : <br /><b>".$translate."</b>";
 
 
}
 
 
?>
 
 |