From: Michael Date: Sat, 30 Sep 2023 16:00:26 +0000 (+0000) Subject: Cleaned up code X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0eda161e04af171e43897ca0d780c1c20ff1ce21;p=friendica-addons.git Cleaned up code --- diff --git a/cld/cld.php b/cld/cld.php index 4c54b2d0..56bca64f 100644 --- a/cld/cld.php +++ b/cld/cld.php @@ -53,11 +53,6 @@ function cld_get_language(array &$data) } if ($original == $detected) { -// return; - } - - // Nur aus Testgründen - if (in_array($detected, ['xx-Qaai', 'ht', 'ga'])) { return; } @@ -68,8 +63,6 @@ function cld_get_language(array &$data) return; } - Logger::debug('Detected', ['original' => $original, 'detected' => $detected, 'name' => $result['language_name'], 'probability' => $result['language_probability'], 'text' => $data['text']]); - -// Logger::debug('Detected different language', ['original' => $original, 'detected' => $detected, 'name' => $result['language_name'], 'probability' => $result['language_probability'], 'text' => $data['text']]); + Logger::debug('Detected different language', ['original' => $original, 'detected' => $detected, 'name' => $result['language_name'], 'probability' => $result['language_probability'], 'text' => $data['text']]); $data['detected'] = [$detected => $result['language_probability'] / 100]; }