News Feed
Sections




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

Sameer Borate's Blog:
Google Translation PHP wrapper
March 03, 2010 @ 08:56:25

On his Code Diesel blog Sameer Borate has posted about a Google Translation wrapper library that can be used to interface with Google's Translation backend.

Google translation is an interesting service. Not only can you do language translation, you can also detect the language of a particular text. I recently needed to create a Wordpress plugin to translate post titles from one language to another. As the translation API is only available for Java and Javascript, I decided to create a quick one for PHP.

You'll need to register for an API key before you can follow along with the examples. Sameer includes a few small code snippets showing how to run a "self test" to be sure things are working, a sample translation of a string and how to grab errors should they happen during the process. You can grab the library from the Google Code page for the project.

0 comments voice your opinion now!
google translate api tutorial


blog comments powered by Disqus

Similar Posts

Blogs.sun.com: NetBeans for PHP

PHP-Coding-Practices.com: How I Turned A Slow Array Sort Into A Quick One Using Quicksort Algorithm

SitePoint PHP Blog: Message Queues: Comparing Beanstalkd, IronMQ and Amazon SQS

SitePoint PHP Blog: Help Develop PHP: 5.6 RC1 on Homestead

IBM developerWorks: Cook up Web sites fast w/CakePHP, Part 1: Adding related information & services


Community Events





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


configure code threedevsandamaybe laravel podcast series community introduction release library interview application symfony wordpress install developer language api list bugfix

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