Monday, October 17, 2011

Google Translator Toolkit Client

    Half a year ago I implemented this Java Client that covers most of what Google Translator Toolkit  API has to offer. One implementation that depends on the old gdata-java-client is already available by Google. This one is using the new java client library (com.google.api-client 1.5-beta) after I switched from 1.3 or 1.4 version.
    Translator Toolkit API is restricted but you may ask for the access. I really don't know if it is going to be shut down or monetized, I hope not, because I decided to use that and I implemented this client library before it became restricted.
    Now I can finally use it in production because until now there were really annoying server side bugs that made API return different results than those you could see right in GTT. Also I wasn't aware of the category with label "completed" that signalizes that the document was marked as "completed". Somebody told me that "gtt:percentComplete" element is good for that, but it is really not ! You cannot determine if it is complete or not based on this information at all.

    Beware that this client is a prototype, so you shouldn't really rely on it right now. I'm going to test it more in a few weeks. I've already wrote a few tests but I don't run them because they directly call GTT API and I don't really want to make Google API busy with testing data.
    If you are going to clone that repository, please run it "mvn install -DskipTests"  to avoid running the tests. You would need to install this document-provider anyway.

No comments: