Name: Anonymous 2008-02-26 8:41
Based on this broken piece of shit: http://douweosinga.com/projects/poetryintranslation
<?php $i=fgets(STDIN);echo(t (
t(t(t($i,"en|de"),"de|fr") ,
"fr|de"),"de|en"));function t
($t,$f){$i=file_get_contents (
"http://google.com/translat" .
"e_t?langpair=".urlencode($f )
."&text=".urlencode($t)) ;
preg_match('/<div id=result' .
'_box dir="ltr">(.*?)<\/div>/'
,$i,$o);return$o[1];}?>
<?php $i=fgets(STDIN);echo(t (
t(t(t($i,"en|de"),"de|fr") ,
"fr|de"),"de|en"));function t
($t,$f){$i=file_get_contents (
"http://google.com/translat" .
"e_t?langpair=".urlencode($f )
."&text=".urlencode($t)) ;
preg_match('/<div id=result' .
'_box dir="ltr">(.*?)<\/div>/'
,$i,$o);return$o[1];}?>
C:\>php trans.php
How much wood would a woodchuck chuck if a woodchuck could chuck wood.
How much wood, a marmot of the power supply, if a groundhog, feed wood tension.
C:\>php trans.php
My other car is a cudder
My second car is a cudder