nettoyage module search

This commit is contained in:
Fred Tempez 2022-08-30 20:29:50 +02:00
parent e4916fa9cc
commit e0414c83dc
1 changed files with 5 additions and 10 deletions

View File

@ -337,9 +337,4 @@ class search extends common {
}
}
// Requête de traduction avec le script Google
private function translate($from_lan, $to_lan, $text) {
$arrayjson = json_decode(file_get_contents('https://translate.googleapis.com/translate_a/single?client=gtx&sl='.$from_lan.'&tl=fr&dt=t&q='.$text),true);
return $arrayjson[0][0][0];
}
}