mirror of
https://github.com/friendica/friendica
synced 2025-04-24 13:10:11 +00:00
Merge remote-tracking branch 'upstream/develop' into worker-class
This commit is contained in:
commit
930309d2ec
116 changed files with 916 additions and 491 deletions
|
@ -365,12 +365,8 @@ function item_add_language_opt(&$arr) {
|
|||
$postopts = "";
|
||||
}
|
||||
|
||||
require_once('library/langdet/Text/LanguageDetect.php');
|
||||
|
||||
$naked_body = preg_replace('/\[(.+?)\]/','', $arr['body']);
|
||||
$l = new Text_LanguageDetect();
|
||||
//$lng = $l->detectConfidence($naked_body);
|
||||
//$arr['postopts'] = (($lng['language']) ? 'lang=' . $lng['language'] . ';' . $lng['confidence'] : '');
|
||||
$lng = $l->detect($naked_body, 3);
|
||||
|
||||
if (sizeof($lng) > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue