Skip to content

Class library to connect and query with Microsoft Azure Translation Service

Notifications You must be signed in to change notification settings

CaseNEX/Utilities.NET.Translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AzureTranslationLib

This is a class library to connect and query with Microsoft Azure Translation Service, created for .net 4.0 projects.

It is currently a simple library to translate text from english to one of the available languages in the Microsoft Translator API (http://datamarket.azure.com/dataset/bing/microsofttranslator). I am planning on implementing the language detection features and translations from any to any available language when I have time.

The codes for available languages are here: http://msdn.microsoft.com/en-us/library/hh456380.aspx

Implementation instructions:

  • Follow steps 1 and 2 to set up an Azure Marketplace account and get your clientID and clientSecret http://msdn.microsoft.com/en-us/library/hh454950.aspx
  • Enter your clientID and clientSecret in your app.config settings under the keys AzureClientID and AzureClientSecret
  • Build the project
  • Add the AzureTranslate.dll file you just created in /bin/ to wherever you put your class libraries in your project (I use /bin/ in my projects)
  • Add a reference to AzureTranslate.dll in Visual Studio, and import the AzureTranslate Namespace.
  • Add a SERVICE reference to http://api.microsofttranslator.com/V2/Soap.svc - Name it "TranslatorService" without the quotes (Important!)
  • Call Translation.Execute(text,language,(optional ClientID),(optional ClientSecret)) and it will return a string translated!

About

Class library to connect and query with Microsoft Azure Translation Service

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages