RenatoSousa89 / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 0 forks source link

I can't get back newline with Google Language API for Flash and other Non-Javascript Environments. #234

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
examples:

Windows style ( \r\n or %0D%0A ):
http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=hello%0D%0Aw
orld&langpair=en%7Cit

Unix style (\n or %0A):
http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=hello%0Aworl
d&langpair=en%7Cit

Mac style (\r or %0D):
http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=hello%0Dworl
d&langpair=en%7Cit

Response:
{"responseData": {"translatedText":"ciao mondo"}, "responseDetails":
null, "responseStatus": 200} 

Expected:
{"responseData": {"translatedText":"ciao\nmondo"}, "responseDetails":
null, "responseStatus": 200} 

What version of the product are you using? On what operating system?
any browser

Original issue reported on code.google.com by Zhiz...@gmail.com on 22 Apr 2009 at 9:03

GoogleCodeExporter commented 8 years ago
Or the JS, for that matter.

Changing this to a suggestion, that the API support newlines. Vote it up!

Original comment by jrgeer...@gmail.com on 4 May 2009 at 1:01

GoogleCodeExporter commented 8 years ago
thanks to jrqeerdes,
"<br>" working fine.

Original comment by Zhiz...@gmail.com on 4 May 2009 at 3:32

GoogleCodeExporter commented 8 years ago
Hi guys, i use the API to translate texts for my website in the background and 
it
would be much better if it support new lines, in this way i can translate 
everything
in the way it was supposed to be! Also it's a pain to translate textareas. I 
guess
that it's a bit difficult to have new lines for translated strings (since it's
difficult to make the same sense in the other languages) , but it really makes 
this
API more powerful. It's possible to define a parameter or something to be 
passed to
the url, and also a pattern to be followed,

thank you

Original comment by mufumb...@gmail.com on 19 Jul 2009 at 7:58