views:

673

answers:

4

hi,

i want to use google translate api from the iphone.

what i found is : http://code.google.com/p/gdata-objectivec-client/

but in the list i can not see the translate api.

where i can found the library ?

thanks.

+2  A: 

The Google Language API is provided as a web service. For non-javascript environments, you should be using JSON to communicate with Google's servers.

There doesn't seem to be an Objective-C wrapper to this functionality (like the ones you posted), so you'll have to roll your own. Thankfully, JSON is pretty easy to use on the iPhone.

Ben S
A: 

You can use Stig Brautaset’s JSON library (version 2.2), which provides functionality for parsing and generating JSON. The JSON response from Google Translate is well formatted with no line breaks, so you can use NSScanner too.

Iggy
A: 

I writed an objective-c wrapper for Google Translator service named PLTranslator. check it out at http://github.com/xhan/PLTranslator

xhan