Saturday, August 3, 2013

How to Translate Twitter Tweets ?

Twitter has recently added an Translating Feature which helps the user and readers to read their        Tweets in their known or Mother Tounge Languages.This Translating Feature was provided by Bing  Translator.                                                                                                                                   
 If you would like to give it a try, go to @MuhammadMorsi’s Twitter page, expand any tweet and click “View Translation.” Twitter will translate the tweet from Arabic to your language.        

Once you click the Translate Link, Twitter makes an easy http ask for with the ID of these specific tweet and the location language (in our own scenario, English). The actual response, inside JSON, contains the converted textual content.

https://twitter.com/i/translations/show.json?dest=<LANG>&id=<TWEET_ID>

Twitter has rolled out there the particular interpretation function to select accounts although you can actually produce interpretation demands for any tweet as long as the particular Twitter account is usually open.

For instance, if you wish to translate this tweet (ID: 344115057778642945) from English (en) to, say, German (de), the request would be: https://twitter.com/i/translations/show.json?dest=de&id=344115057778642945   or, for Italian, we will just change the destination language parameter from fr to it:  https://twitter.com/i/translations/show.json?dest=it&id=344115057778642945

The actual language interpretation demands inside Twitter call for absolutely no authentication as well as programmers can readily construct uncomplicated applications for this function. For example, you could provide RSS feed for twitter Or perhaps a Twittere bot which cross-posts ones normal twitter updates and messages in yet another language.

0 comments:

Post a Comment

© Digital Technology Blog 2012 | Blogger Template by Enny Law - Ngetik Dot Com - Nulis