Location: PHPKode > scripts > Translate with Altavista Babelfish > translate-with-altavista-babelfish/test.php
<html>
<head>
	<title>Translate test</title>
</head>

<body>

<?

	include "translate_altavista_babelfish.class.php";
	
	$translate = new translate_babelfish_altavista;
	
	$string = "Nunca he sabido a ciencia cierta si los traductores online sirven realmente para algo ... o no ...";
	
	if(!$translated = $translate->translate($string, TRANSLATE_BABELFISH_ALTAVISTA_TRANSLATION_SPANISH_TO_ENGLISH))
		echo "Translation error.";
	else
	{
		echo "<b>Original:</b> ".$string."<br>";
		echo "<b>Translated:</b> ".$translated;
	}
	
?>

</body>
</html>
Return current item: Translate with Altavista Babelfish