GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — GitHub - richmidwinter/google-api-translate-java: Java wrapper for the Google Translate service Folders and files
Repository files navigationProvides a simple, unofficial, Java client API for using Google Translate.
Features:
=========
Small library size - less than 50Kb.
Uses English as an intermediate language to attempt translations between language pairings that are unsupported directly by Google Translate.
The jar is runnable and has a very lightweight GUI to demonstrate translation functionality.
Quickstart:
===========
import com.google.api.translate.Language;
import com.google.api.translate.Translate;
public class Main {
public static void main(String[] args) throws Exception {
// Set the HTTP referrer to your website address.
GoogleAPI.setHttpReferrer(/* Enter the URL of your site here */);
// Set the Google Translate API key
// See: http://code.google.com/apis/language/translate/v2/getting_started.html
GoogleAPI.setKey(/* Enter your API key here */);
String translatedText = Translate.DEFAULT.execute("Bonjour le monde", Language.FRENCH, Language.ENGLISH);
System.out.println(translatedText);
}
}
AboutJava wrapper for the Google Translate service ResourcesReleasesPackagesUsed byContributorsLanguages | |||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | |||||||||||||||||||||||||||||||||||||||||||