public function translate(
        $text,
        $to,
        $from = null,
        $category = null,
        $contentType = ApiCall\Translate::CONTENT_TYPE_TEXT
    )
    {
        $apiCall = new ApiCall\Translate($text, $to, $from, $category, $contentType);

        return $this->call($apiCall);
    }
public function translate(
        $text,
        $to,
        $from = null,
        $category = null,
        $contentType = ApiCall\Translate::CONTENT_TYPE_TEXT
    )
    {
        $apiCall = new ApiCall\Translate($text, $to, $from, $category, $contentType);

        return $this->call($apiCall);
    }
public function translate ( $ text , $ to , $ from = null , $ category = null , $ contentType = ApiCall \ Translate :: CONTENT_TYPE_TEXT ) { $ apiCall = new ApiCall \ Translate ( $ text , $ to , $ from , $ category , $ contentType ) ; return $ this -> call ( $ apiCall ) ; }
Translates a given text or html to the given language

The language of the given text or html is optional, and will be auto-detected
The category will default to "general"

@param string $text
@param string $to
@param string|null $from
@param string $contentType
@param string|null $category
@return string
Translates a given text or html to the given language