没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > google-api-translate-java |
google-api-translate-java
|
2 | 0 | 52 |
贡献者 | 讨论 | 代码提交 |
概述
Provides a simple, unofficial, Java client API for using Google Translate.
Install
Simply include the google-api-translate-java.jar file in your application's classpath.
Quickstart
This is our "Hello World" example:
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("Salut le monde", Language.FRENCH, Language.ENGLISH);
System.out.println(translatedText);
} catch (Exception ex) {
ex.printStackTrace();
}
}
}Well done. You're now an expert in using this API! The wiki has a more complete example usage within a desktop application.
Features
Automatically throttles repeated queri
创建时间:2014-05-06 16:32