nettoyage module search
This commit is contained in:
parent
e4916fa9cc
commit
e0414c83dc
@ -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];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user