News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Derick Rethans' Blog:
Translating Twitter
January 05, 2011 @ 10:05:46

In a new post to his blog Derick Rethans shows how to implement something very handy for those wanting to read all of the posts in their twitter stream, regardless of the language. Using Google web services, he's put together a twitter translation for his twitter client Haunt.

As the author of Xdebug I am interested in finding out what people think of it, and whether they have problems or compliments. I've set-up a twitter account for Xdebug, @xdebug, and my twitter client Haunt also shows me all tweets with the search term xdebug. However, sometimes I get tweets in a language I can't read.

Since there's no language information associated with tweets, Derick used Google's Language Detect web service to get the language code for the text. Another quick call to the Translate service and a suable translation is returned. You can see how it looks in his screenshot. You can find the code for it here.

0 comments voice your opinion now!
translate twitter language google webservice detect


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: Create a PHP-based Twitter Client with the PEAR Services_Twitter Package

Nick Halstead's Blog: 10 Reasons why PHP is still very much alive

Lorna Mitchell: Twitter Search API Using PHP and Guzzle

The Codist Blog: I Will Never Understand the Appeal Of PHP

Pádraic Brady's Blog: PHP: Innocent Villagefolk or a Pillagin' Pirate?


Community Events





Don't see your event here?
Let us know!


bugfix introduction release laravel deployment install tips series package interview voicesoftheelephpant symfony list api opinion podcast language community framework library

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework