/// <summary> /// Initializes the localization of the plugin /// </summary> public void InitLocalization() { LocaleVersion locale = PluginBase.MainForm.Settings.LocaleVersion; switch (locale) { /* * case LocaleVersion.fi_FI : * // We have Finnish available... or not. :) * LocaleHelper.Initialize(LocaleVersion.fi_FI); * break; */ default: // Plugins should default to English... LocaleHelper.Initialize(LocaleVersion.en_US); break; } this.pluginDesc = LocaleHelper.GetString("Info.Description"); // TODO: test try { this.CreateAssociation(); } catch (Exception e) { Console.Write(e.Message); } }
/// <summary> /// Initializes the localization of the plugin /// </summary> public void InitLocalization() { LocaleVersion locale = PluginBase.MainForm.Settings.LocaleVersion; switch (locale) { /* * case LocaleVersion.fi_FI : * // We have Finnish available... or not. :) * LocaleHelper.Initialize(LocaleVersion.fi_FI); * break; */ default: // Plugins should default to English... LocaleHelper.Initialize(LocaleVersion.en_US); break; } this.pluginDesc = LocaleHelper.GetString("Info.Description"); /*__timer = new System.Timers.Timer(); * __timer.Elapsed += new ElapsedEventHandler(HandleTimerComplete); * if (settingObject.CheckTimer != TimerCheckInterval.Never) * { * __timer.Interval = (int)settingObject.CheckTimer; * }*/ }
/// <summary> /// Initializes a new instance of the <see cref="PluginUI"/> class. /// </summary> /// <param name="pluginMain">The plugin main.</param> public PluginUI(PluginMain pluginMain) { this.InitializeComponent(); this.pluginMain = pluginMain; LocaleVersion locale = PluginCore.PluginBase.MainForm.Settings.LocaleVersion; switch (locale) { /* * case LocaleVersion.fi_FI : * // We have Finnish available... or not. :) * LocaleHelper.Initialize(LocaleVersion.fi_FI); * break; */ default: // Plugins should default to English... LocaleHelper.Initialize(LocaleVersion.en_US); break; } this.buttonSVNCheck.Text = LocaleHelper.GetString("Title.SVNCheckButton"); this.NotTracked.Text = LocaleHelper.GetString("Title.NotTracked") + "\n" + LocaleHelper.GetString("Title.TrackIt"); this.NotTracked.LinkArea = new LinkArea(LocaleHelper.GetString("Title.NotTracked").Length + 1, LocaleHelper.GetString("Title.TrackIt").Length); this.NotTracked.LinkClicked += new LinkLabelLinkClickedEventHandler(this.NotTracked_LinkClicked); disableVersion(); }
/// <summary> /// Initializes the localization of the plugin /// </summary> public void InitLocalization() { LocaleVersion locale = PluginBase.MainForm.Settings.LocaleVersion; switch (locale) { default: LocaleHelper.Initialize(LocaleVersion.en_US); break; } this.pluginDesc = LocaleHelper.GetString("Info.Description"); }
/// <summary> /// Initializes the localization of the plugin /// </summary> public void InitLocalization() { LocaleVersion locale = PluginBase.MainForm.Settings.LocaleVersion; switch (locale) { case LocaleVersion.ja_JP: LocaleHelper.Initialize(LocaleVersion.ja_JP); break; default: LocaleHelper.Initialize(LocaleVersion.en_US); break; } pluginDesc = LocaleHelper.GetString("INFO_DESCRIPTION"); }
/// <summary> /// Initializes the localization of the plugin /// </summary> public void InitLocalization() { LocaleVersion locale = PluginBase.MainForm.Settings.LocaleVersion; switch (locale) { /* case LocaleVersion.fi_FI : // We have Finnish available... or not. :) LocaleHelper.Initialize(LocaleVersion.fi_FI); break; */ default : // Plugins should default to English... LocaleHelper.Initialize(LocaleVersion.en_US); break; } this.pluginDesc = LocaleHelper.GetString("Info.Description"); }