I have tried implementing example posted on the old discussion board (
http://processing.org/discourse/beta/num_1248889265.html) , following the instructions to download, Add the .jar file to my project and use the code below in my sketch.
I continually get the error "The function translate(String, Language, Language) does not exist."
Are there any suggestions as to what I might be doing wrong? Thanks for your help. I am looking forward to getting this functionality working on my project.
My code:
import com.google.api.translate.Language;
import com.google.api.translate.Translate;
try {
String translatedText = Translate.translate("Bonjour le monde", Language.FRENCH, Language.ENGLISH);
println(translatedText);
} catch (Exception ex) {
ex.printStackTrace();
}