static Core() { Command.CommandManager.Changed += new EventHandler(CommandManager_Changed); FullPath = string.Empty; option = LoadOption(); // Switch the language according to the loaded settings Language = Option.GuiLanguage; // Switch the culture according to the set language switch (Language) { case Effekseer.Language.English: Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US"); break; case Effekseer.Language.Japanese: Thread.CurrentThread.CurrentUICulture = new CultureInfo("ja-JP"); break; } New(); CommandScripts = new Script.ScriptCollection <Script.CommandScript>(); SelectedScripts = new Script.ScriptCollection <Script.SelectedScript>(); ExportScripts = new Script.ScriptCollection <Script.ExportScript>(); ImportScripts = new Script.ScriptCollection <Script.ImportScript>(); }
static Core() { CommandScripts = new Script.ScriptCollection <Script.CommandScript>(); SelectedScripts = new Script.ScriptCollection <Script.SelectedScript>(); ExportScripts = new Script.ScriptCollection <Script.ExportScript>(); ImportScripts = new Script.ScriptCollection <Script.ImportScript>(); }
static Core() { Command.CommandManager.Changed += new EventHandler(CommandManager_Changed); FullPath = string.Empty; option = LoadOption(); Language = Option.GuiLanguage; // 読み込んだ設定により Core の言語を設定する // 設定された言語によりカルチャーを切り替えます switch (Language) { case Effekseer.Language.English: Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US"); break; case Effekseer.Language.Japanese: Thread.CurrentThread.CurrentUICulture = new CultureInfo("ja-JP"); break; } New(); CommandScripts = new Script.ScriptCollection <Script.CommandScript>(); SelectedScripts = new Script.ScriptCollection <Script.SelectedScript>(); ExportScripts = new Script.ScriptCollection <Script.ExportScript>(); ImportScripts = new Script.ScriptCollection <Script.ImportScript>(); }
static Core() { #if SCRIPT_ENABLED CommandScripts = new Script.ScriptCollection <Script.CommandScript>(); SelectedScripts = new Script.ScriptCollection <Script.SelectedScript>(); ExportScripts = new Script.ScriptCollection <Script.ExportScript>(); ImportScripts = new Script.ScriptCollection <Script.ImportScript>(); #endif // change a separator System.Globalization.CultureInfo customCulture = (System.Globalization.CultureInfo)System.Threading.Thread.CurrentThread.CurrentCulture.Clone(); customCulture.NumberFormat.NumberDecimalSeparator = "."; System.Threading.Thread.CurrentThread.CurrentCulture = customCulture; Language = Language.English; }
static Core() { Command.CommandManager.Changed += new EventHandler(CommandManager_Changed); FullPath = string.Empty; var culture = System.Globalization.CultureInfo.CurrentCulture; if (culture.Name == "ja-JP") { Language = Language.Japanese; } else { Language = Language.English; } New(); CommandScripts = new Script.ScriptCollection <Script.CommandScript>(); SelectedScripts = new Script.ScriptCollection <Script.SelectedScript>(); ExportScripts = new Script.ScriptCollection <Script.ExportScript>(); ImportScripts = new Script.ScriptCollection <Script.ImportScript>(); }