Description
FastTranslate is a service that translates between human languages. And it is fast. Very fast. It's backed by the Google Translate service, and supports all the languages that they do. Unlike Google Translate (or the Java API for it), tranlation requests are not restricted in size. Want to translate several pages of text? Go for it. It'll be fast. Very fast.
Why so fast? FastTranslate is backed by GParallelize or GPars, so requests to the Google servers are batched and parallelized. Gotta embrace that multi-core revolution.
Requirements
FastTranslate requires two things:
- An Internet connection - Google Translate is a web service and must be reached.
- The GParallelize Plugin - FastTranslate is not bundled with the GPars/GParallelizer plugin. You'll need to install it yourself. Currently, version 0.3 is the best one to install.
Installation
The current version of FastTranslate is 0.2
To install just issue the following commands:
API
org.fasttranslate.TranslationService
String |
translate(String text, String lang1, String lang2) |
Translates the specified text from one language to another. |
void |
translate(List<Map> translationRequests) |
Provides service to translate several pieces of text in several languages. |
void |
translate(String text, List<Map> requests) |
Provides service to translate a piece of text into several languages. |
List<String> |
getLanguages() |
Gets a list of all supported languages. |
Usage
Example
The FastTranslate plugin is used by the open source easy-translate application: http://code.google.com/p/easy-translate/


