Babel Fish for Twitter – New Twim Release

Google Translator is a great translator tool which has a very simple AJAX API that can be easily used from mobile apps. Compared to other translator tools it has one feature which other services don’t have, the auto detection of language.

The API is really easy to use. All you need to do is to pass three parameters to the API call:

  1. Version, v=1.0
  2. Translated text, q=Hei maailma!
  3. Language pair (if source is empty then language is automatically identified), langpair=|en

In the end you end up with the following URL:

http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&langpair=|en&q=Hei+maailma!

And if you click the link you’ll see that it returns the translated text in JSON format which is pretty easy to parse.

{ "responseData": {
"translatedText":"Hello world!",
"detectedSourceLanguage":"fi" },
"responseDetails": null,
"responseStatus": 200}

This made it pretty easy to integrate the API call to Twim. So now in Twim 1.6 you can select a tweet from status list and select “Translate to English” from status menu and Twim will display the translation to you in seconds. Pretty handy if you are following people from other countries in Twitter. Go ahead and download the latest Twim to your mobile phone from here.

…and by the way, new feature also has the “paging” feature for home screen and search results as a bonus! Happy Twittering!

Posted using Mobypicture.com

4 Responses to “Babel Fish for Twitter – New Twim Release”

  1. 1
    7Rain Says:

    Hi Tommie,

    for me Twim is the most stylish Java mobile app for Twitter, I realy like it!
    The only thing is the lack of user pictures. Do you plan to implement that?

    Best,
    7.

  2. 2
    Tommi Laukkanen Says:

    @7Rain: Thanks! Yes, I might add support to user avatars in the future versions of Twim.

  3. 3
    7Rain Says:

    Sounds good. Can’t wait. :) Cheers!

  4. 4
    kouz Says:

    I like your twitter client Twim, but we can’t use twitter in china directly. Will you make it support twitter api proxy for Chinese twiter-ers?

Leave a Reply