H2CO3 / BingTranslate

Objective-C client library for the Microsoft (R) Translator APIs
http://apaczai.elte.hu/~13akga/
15 stars 7 forks source link

Bing Translate API Objective-C Client Created by Árpád Goretity

Licensed in a CreativeCommons Attribution 3.0 Unported License.

Bing, Bing Translate, Miscrosoft, Microsoft Translate and so on are copyrights, registered trdemarks, intellectual properties and whatevers of Microsoft. I DO NOT WANT TO STEAL THEM, I JUST CAN'T ALWAYS USE EXACT LAW TERMS. SO PLEASE DO NOT SUE ME ON THESE, OK? :) If you have a better way to say this properly, please let me know :) I don't want to experience how good are Microsoft's lawyers.

How to compile this (dummy):

Compile as a framework for iOS (thus, without modification, it works only on jailbroken devices. However, with a small modification of the Makefile and your project, the code can be easily incorporated in any, even AppStore app):

mobile@iPhone ~ $ git clone git://github.com/H2CO3/BingTranslate mobile@iPhone ~ $ cd BingTranslate mobile@iPhone ~ $ sudo make

The last command only works if the proper directory structure is set up on the device beforehands. See Makefile for details. Make sure to create and copy the appropriate files to /System/Library/Frameworks/BingTranslate.framework

How to use this:

Go ahead to http://www.microsoft.com/web/post/using-the-free-bing-translation-apis or http://www.bing.com/developers/appids.aspx to obtain an App ID. Then create instances of BTClient and start making translate and speech requests. Note that the BTClientDelegate protocol lists all methods as required so you'll need to implement all of them if your delegate is non-NULL.

@interface Whatever: NSObject { BTClient *client; }

@implementation Whatever

@end