Initialize() public method

public Initialize ( CultureInfo thisCultureInfo, bool checkTranslation = false ) : void
thisCultureInfo CultureInfo
checkTranslation bool
return void
Exemplo n.º 1
0
    /// <summary>
    /// Shows the translate window window.
    /// </summary>
    public static TranslateLanguageWindow ShowWindow(CultureInfo info, SmartLocalizationWindow smartLocWindow)
    {
        TranslateLanguageWindow thisWindow = (TranslateLanguageWindow)EditorWindow.GetWindow <TranslateLanguageWindow>("Translate Language", true, typeof(SmartLocalizationWindow));

        thisWindow.smartLocWindow = smartLocWindow;
        thisWindow.Initialize(info);
        return(thisWindow);
    }
Exemplo n.º 2
0
 private void ShowTranslateWindow(CultureInfo info)
 {
     if (translateLanguageWindow == null)
     {
         translateLanguageWindow = TranslateLanguageWindow.ShowWindow(info, this);
         translateLanguageWindow.ShowTab();
     }
     else
     {
         translateLanguageWindow.Initialize(info);
         translateLanguageWindow.ShowTab();
     }
 }