Google translate переводчик
                
                        
<?php 
/** 
* Google translate переводчик 
* автор: Nc_Soft, Soft_Land 
* 22.06.09 
*/ 
class GoogleTranslate {   
      
    static function translate($text, $source, $dest) {  
        $text    =    urlencode($text);  
        $ch        =    curl_init('http://translate.google.ru');  
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);  
        curl_setopt($ch, CURLOPT_POST,1);  
        curl_setopt($ch, CURLOPT_POSTFIELDS, "text=$text&sl=$source&tl=$dest");  
        curl_setopt($ch, CURLOPT_HEADER, 1);  
        curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.3) Gecko/2008092417');  
        $r        =    curl_exec($ch);  
        $arr    =    array();  
        preg_match("|<textarea name=utrans wrap=SOFT dir=\"ltr\" id=suggestion style=\"width:80%;margin:5px 0;overflow:auto\">(.*)</textarea>|sU", $r, $arr);  
        return strip_tags(str_replace('<br>', "\n", htmlspecialchars_decode($arr[1])));  
    }  
      
} 
echo GoogleTranslate::translate('Read this fucking manual', 'eng', 'ru'); 
//ps Спасибо SL за подробный языковой массив. 
?>