PandaTwo / php-language-api

Automatically exported from code.google.com/p/php-language-api
0 stars 0 forks source link

lengh exceeded? #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. translation

What is the expected output? What do you see instead?
in stead of the translated string I've got this message: 
Warning: 
file_get_contents(http://ajax.googleapis.com/ajax/services/language/translate
?v=1.0&q=Il%20volo%20non%20%E8%20...

Please provide any additional information below.
the text I'm trying to translate is quite long; is there any limit in text 
lengh?

Original issue reported on code.google.com by manuele....@gmail.com on 20 Dec 2009 at 3:43

GoogleCodeExporter commented 8 years ago
According to http://code.google.com/apis/ajaxlanguage/terms.html there is a 
limit of 5000 characters. Ideally 
the class should check for this before requesting the translation from google

Original comment by gugakf...@gmail.com on 21 May 2010 at 11:14

GoogleCodeExporter commented 8 years ago
HTTP Get method has some URL length limitiations 
(http://www.boutell.com/newfaq/misc/urllength.html) on some situations. You 
should post method to interact with GTranslate. 

Original comment by ozgurk...@gmail.com on 25 Jul 2011 at 12:32