コード例 #1
0
ファイル: PluginMain.cs プロジェクト: bottleboy/e4xu
        /// <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);
            }
        }
コード例 #2
0
ファイル: PluginMain.cs プロジェクト: Nindzzya/thecodingfrog
        /// <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;
             * }*/
        }
コード例 #3
0
        /// <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();
        }
コード例 #4
0
ファイル: PluginMain.cs プロジェクト: bottleboy/e4xu
        /// <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");
        }
コード例 #5
0
ファイル: PluginMain.cs プロジェクト: kisabon/flashdevelopjp
        /// <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");
        }
コード例 #6
0
ファイル: PluginMain.cs プロジェクト: benny-yau/.NET-RCP
 /// <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");
 }