@@ -14,7 +14,7 @@ |
||
14 | 14 | // Check if host is online. |
15 | 15 | if ($this->checkHost($host)) { |
16 | 16 | |
17 | - // Host online |
|
17 | + // Host online |
|
18 | 18 | $urlString = urlencode($this->string); |
19 | 19 | $urldata = file_get_contents("http://$host/get?q=$urlString&langpair=$this->from|$this->to"); |
20 | 20 | $data = json_decode($urldata, true); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | // Check if host is online. |
15 | 15 | if ($this->checkHost($host)) { |
16 | 16 | |
17 | - // Host online |
|
17 | + // Host online |
|
18 | 18 | $urlString = urlencode($this->string); |
19 | 19 | $urldata = file_get_contents("https://translate.googleapis.com/translate_a/single?client=gtx&sl=$this->from&tl=$this->to&dt=t&q=$urlString"); |
20 | 20 | $tr = $urldata; |