public void OnLanguageChanged() { Settings.Culture = Language.Id; DefaultLocalizer.SwitchLanguage(Language); LocalizeKeybindsText(); UIAssistantAPI.Instance.PluginManager.Localize(); TasktrayIcon.HideNotifyIcon(); TasktrayIcon.ShowNotifyIcon(); }
public void Initialize(Control defaultHUDPanel, Control defaultContextPanel) { if (ViewAPI != null) { return; } ViewAPI = new ViewAPI(defaultHUDPanel, defaultContextPanel); DefaultLocalizer.SwitchLanguage(DefaultLocalizer.FindLanguage(UIAssistantSettings.Culture)); PluginManager = Plugin.PluginManager.Instance; Plugin.PluginManager.Instance.Initialize(); PluginManager.Localize(); }