Jump to content

Translate my page


Watt

Recommended Posts

I have got a problem. I want to change my page code* to other lang via google translate I wrote:

		$link = 'http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=' .
			urlencode($pagecode) . 
			'&langpair=' . $langin . '%7C' .
			$langout;


	$pagecode = file_get_contents($link);

But it does not work

 

* - Code of page - I mean:

<html>
<head>
...
...
blah blah blah
...
</head>
<body>
...
...
...
...
...
...
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/197278-translate-my-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.