toggle Cinema 27 Oct 2009

Google-api-translate-java Posted by Insane in Uncategorized | 2 responses

Encontre  este proyecto en Google Code el nos permite usar Google Translate en nuestras aplicaciones Java.

Su uso es de lo mas sencillo:

import com.google.api.translate.Language;
import com.google.api.translate.Translate;
public class Main {
public static void main(String[] args) {
try {
String translatedText = Translate.translate("Hola mundo", Language.SPANISH, Language.ENGLISH);
System.out.println(translatedText);
} catch (Exception ex) {
ex.printStackTrace(); }
}
}
  • Share/Bookmark

Tags:

Promote this post

Would you like to add this post to your bookmarks? Come on, do not miss any updates and stay tuned.
Please share with us!
+

2 Comments to “ Google-api-translate-java ”

  1. Thank you very much for your text about this topic

Leave a Reply ( Guest )

(*)

(will not be published) (*)