This class can help you to detect the language of a given text. Uses the Google Translation API.
require 'lang_detect.class.php';
$text = 'It is text in English';
try {
echo lang_detect::detect($text);
} catch (LangDetectException $e) {
echo $e->getMessage();
}
Questions & Comments