tohateam / google-api-translate-java

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

Unable to translate RUSSIAN to ENGLISH #73

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. please compile attached java file with the help of google-api-translate-
java-0.8.java
2. Run the file
3. See the Error

What is the expected output? What do you see instead?
Expected the russian text to be translated as English, But
Instead i observed error like..

Exception in thread "main" java.lang.Exception: [google-api-translate-
java] Error retrieving translation.
        at com.google.api.GoogleAPI.retrieveJSON(GoogleAPI.java:85)
        at com.google.api.translate.Translate.execute(Translate.java:61)

What version of the product are you using? On what operating system?
jar file version is 0.8 and operating system is Windows XP

Please provide any additional information below.

English to Russain is OK. But Russian to English is not happening.

Original issue reported on code.google.com by uday.mad...@gmail.com on 15 Oct 2009 at 9:45

Attachments:

GoogleCodeExporter commented 8 years ago
I think the string you're translating is "too long". Calling the translate 
library 
multiple times with shorter strings should workaround the issue.

I'm aware this is a problem and looking at either dividing up the string to 
translate 
or I believe using an HTTP POST may get around the issue. Sorry I can't be more 
helpful, but I don't expect there to be a better solution to this within the 
library 
soon.

Original comment by rich.mid...@gmail.com on 16 Oct 2009 at 5:44