C# Класс TranslateLanguageWindow, SmartLocalization

Наследование: EditorWindow
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Initialize() публичный Метод

public Initialize ( CultureInfo thisCultureInfo, bool checkTranslation = false ) : void
thisCultureInfo CultureInfo
checkTranslation bool
Результат void

ShowWindow() публичный статический Метод

Shows the translate window window.
public static ShowWindow ( CultureInfo info, SmartLocalizationWindow, smartLocWindow ) : TranslateLanguageWindow,
info CultureInfo
smartLocWindow SmartLocalizationWindow,
Результат TranslateLanguageWindow,

TranslatedTextArrayCompleted() публичный Метод

Callback when the translated array of texts is completed
public TranslatedTextArrayCompleted ( List keys, List translatedValues ) : void
keys List /// Keys. ///
translatedValues List /// Translated values. ///
Результат void

TranslatedTextCompleted() публичный Метод

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. ///
Результат void