ericnembot / google-api-translate-java

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

Error retrieving translation. #160

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello! I have the exception: 

Error: [google-api-translate-java] Error retrieving translation.
com.google.api.GoogleAPIException: java.lang.Exception: 
[google-api-translate-java] Error retrieving translation.

Java code: 
//begin
GoogleAPI.setHttpReferrer("http://sharezz.dyndns.org");
GoogleAPI.setKey("ABQIAAAAJoFhghXdPwcFme2YD4cgFBTXblsyCTUy2mbJWGg3mX5bLuwNdhTwW0
Bokt-m_FUfkrXj3TtXh0AIRg");

String translateText = Translate.DEFAULT.execute("Hello", Language.ENGLISH, 
Language.RUSSIAN); 
System.out.println(translateText);      
//end

Help me solve this problem please.
Regards Eugene 

Original issue reported on code.google.com by sharezzo...@gmail.com on 1 Feb 2012 at 6:18