From: Andrew Dolgov Date: Tue, 17 Sep 2013 08:28:31 +0000 (+0400) Subject: include title when detecting article language X-Git-Tag: 1.10~4 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1357a263be61196ad7d02cbf19a6cf08d1e50a80;p=tt-rss.git include title when detecting article language --- diff --git a/include/rssfuncs.php b/include/rssfuncs.php index c8aa7dc2..6d067065 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -572,7 +572,7 @@ print "\n"; } - $entry_language = $lang->detect($entry_content, 1); + $entry_language = $lang->detect($entry_title . " " . $entry_content, 1); if (count($entry_language) > 0) { $entry_language = array_keys($entry_language);