GoogleTranslateAPI is a Objective-C module to use Google Translate API(v2).
Just copy all files in the package to your project.
Import to your class
#import "GoogleTranslateAPI.h"
Create a instance
GoogleTranslateAPI *aGoogleTranslateAPI = [[GoogleTranslateAPI alloc] init];
Implement delegate methods in delegate class.
Error handling:
(void)translate:(GoogleTranslateAPI *)aGoogleTranslateAPI didFailWithError:(NSError *)error
Progress status:
(void)translateProgress:(GoogleTranslateAPI *)aGoogleTranslateAPI message:(NSString *)message
Translate finishing:
(void)translateDidFinished:(GoogleTranslateAPI *)aGoogleTranslateAPI text:(NSString *)text
Call "translate" method to start translation
[aGoogleTranslateAPI translate:text sourceLang:sourceLang destLang:destLang delegate:self];
This "GoogleTranslateAPI" module is originally made for a iOS(iPhone/iPad/iPod) application "CamLingual". Full source code of the "CamLingual" is open for reference.
About CamLingual: http://www.camlingual.com/
CamLingual source code: https://github.com/yoshiokatsuneo/camlingual_iphone
Questions & Comments