$detected = [];
$quality = DI::config()->get('system', 'relay_language_quality');
- foreach (Item::getLanguageArray($body, 10, $uri_id, $author_id) as $language => $reliability) {
+ foreach (Item::getLanguageArray($body, DI::config()->get('system', 'relay_languages'), $uri_id, $author_id) as $language => $reliability) {
if (($reliability >= $quality) && ($quality > 0)) {
$detected[] = $language;
}
// Minimum value for the language detection quality for relay posts. The value must be betweeen 0 and 1.
'relay_language_quality' => 0,
+ // relay_languages (Integer)
+ // Number of languages that are used per post to check for acceptable posts.
+ 'relay_languages' => 10,
+
// session_handler (database|cache|native)
// Whether to use Cache to store session data or to use PHP native session storage.
'session_handler' => 'database',