1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

Update af_lang_detect plugin with changes from upstream

Reapplied downstream changes for phpmd ruleset
This commit is contained in:
tschuettler
2018-08-02 17:23:14 +02:00
parent c925f4e3fd
commit 31b40448fd
8 changed files with 1087 additions and 205 deletions

View File

@@ -4,7 +4,7 @@ class Af_Lang_Detect extends Plugin {
private $lang;
function about() {
return array(1.0,
return array(1.1,
"Detect article language",
"fox");
}
@@ -14,7 +14,7 @@ class Af_Lang_Detect extends Plugin {
$host->add_hook($host::HOOK_ARTICLE_FILTER, $this);
require_once __DIR__ . "/languagedetect/LanguageDetect.php";
require_once __DIR__ . "/languagedetect/Text/LanguageDetect.php";
$this->lang = new Text_LanguageDetect();
$this->lang->setNameMode(2);