C# Class TranslateLanguageWindow, SmartLocalization

Inheritance: EditorWindow
Datei anzeigen Open project: NiklasBorglund/SmartLocalization Class Usage Examples

Public Methods

Method Description
Initialize ( CultureInfo thisCultureInfo, bool checkTranslation = false ) : void
ShowWindow ( CultureInfo info, SmartLocalizationWindow, smartLocWindow ) : TranslateLanguageWindow,

Shows the translate window window.

TranslatedTextArrayCompleted ( List keys, List translatedValues ) : void

Callback when the translated array of texts is completed

TranslatedTextCompleted ( string key, string translatedValue ) : void

Callback when the translated text is translated

Private Methods

Method Description
CheckIfCanBeTranslated ( ) : void

Checks if this language can be translated by Microsoft Translator

InitializeLanguage ( CultureInfo info, LocalizedObject>.Dictionary rootValues, LocalizedObject>.Dictionary thisLanguageValues ) : void

Initializes the Language

OnAudioGUI ( LocalizedObject>.KeyValuePair rootValue, int iterationCount ) : void

Shows the GUI for a key with the type of AUDIO

OnDisable ( ) : void
OnEnable ( ) : void
OnFocus ( ) : void
OnGUI ( ) : void
OnGameObjectGUI ( LocalizedObject>.KeyValuePair rootValue, int iterationCount ) : void

Shows the GUI for a key with the type of GAME_OBJECT

OnProjectChange ( ) : void
OnRootFileChanged ( ) : void
OnTextFieldGUI ( LocalizedObject>.KeyValuePair rootValue, int iterationCount ) : void

Shows the GUI for a key with the type of STRING

OnTextureGUI ( LocalizedObject>.KeyValuePair rootValue, int iterationCount ) : void

Shows the GUI for a key with the type of TEXTURE

Method Details

Initialize() public method

public Initialize ( CultureInfo thisCultureInfo, bool checkTranslation = false ) : void
thisCultureInfo CultureInfo
checkTranslation bool
return void

ShowWindow() public static method

Shows the translate window window.
public static ShowWindow ( CultureInfo info, SmartLocalizationWindow, smartLocWindow ) : TranslateLanguageWindow,
info CultureInfo
smartLocWindow SmartLocalizationWindow,
return TranslateLanguageWindow,

TranslatedTextArrayCompleted() public method

Callback when the translated array of texts is completed
public TranslatedTextArrayCompleted ( List keys, List translatedValues ) : void
keys List /// Keys. ///
translatedValues List /// Translated values. ///
return void

TranslatedTextCompleted() public method

Callback when the translated text is translated
public TranslatedTextCompleted ( string key, string translatedValue ) : void
key string /// The key of the translated value ///
translatedValue string /// Translated value. ///
return void