Smart Localization  2.3
SmartLocalization.Editor.MicrosoftAutomaticTranslator Class Reference

Handles the connection with the Microsoft Translation API More...

Inheritance diagram for SmartLocalization.Editor.MicrosoftAutomaticTranslator:
SmartLocalization.Editor.IAutomaticTranslator

Public Member Functions

 MicrosoftAutomaticTranslator ()
 ctor More...
 
void Initialize (InitializeTranslatorEventHandler eventHandler, string clientID, string clientSecret)
 Initializes the Automatic Translator
 
void GetAvailableTranslationLanguages (GetAvailableLanguagesEventHandler eventHandler)
 Gets all the available languages that can be translated.
 
void TranslateText (TranslateTextEventHandler eventHandler, string key, string textToTranslate, string languageFrom, string languageTo)
 Translate a single string
 
void TranslateTextArray (TranslateTextArrayEventHandler eventHandler, List< string > keys, List< string > textsToTranslate, string languageFrom, string languageTo)
 Translate an array of texts to a specific language. Note: the event handler can be called multiple times if splitting of the array is necessary
 

Properties

bool IsInitialized [get]
 
bool InitializationDidExpire [get]
 
bool IsInitializing [get]
 
- Properties inherited from SmartLocalization.Editor.IAutomaticTranslator
bool IsInitializing [get]
 Returns if the Automatic Translator is currently in the process of initializing More...
 
bool IsInitialized [get]
 Returns if the Automatic Translator is initialized More...
 
bool InitializationDidExpire [get]
 Returns if the Translator is not Initialized anymore due to an expiration of an access token More...
 

Detailed Description

Handles the connection with the Microsoft Translation API

Constructor & Destructor Documentation

SmartLocalization.Editor.MicrosoftAutomaticTranslator.MicrosoftAutomaticTranslator ( )

ctor


The documentation for this class was generated from the following file: