Example #1
0
        /// <summary>
        ///     加载窗体语言
        /// </summary>
        private void LoadLanguage(Language language)
        {
            Text = CultureInfo.InstalledUICulture.Name.ToLower().Contains("zh-") ? "选项" : "Options";

            if (!Config.LanguageFileName.Contains("Simplified Chinese.xml"))
            {
                object model = language.OptionPage;
                _languageLoader.Load(model, typeof(SystemTestPanel), this);
            }
        }
Example #2
0
        /// <summary>
        ///     加载窗体语言
        /// </summary>
        private void LoadLanguage(Language language)
        {
            Text = Config.IsChineseLanguage ? "选项" : "Settings";

            if (!Config.LanguageFileName.Contains("Simplified Chinese.xml"))
            {
                object model = language.OptionPage;
                _languageLoader.Load(model, typeof(OptionForm), this);
            }
        }
Example #3
0
        /// <summary>
        ///     加载窗体语言
        /// </summary>
        private void LoadLanguage(Language language)
        {
            Text = Config.IsChineseLanguage ? "选项" : "Settings";

            if (!Config.LanguageFileName.Contains("Simplified Chinese.xml"))
            {
                object model = language.OptionPage;
                _languageLoader.Load(model, typeof(GeneralPanel), this);
                this.CategoryPath = Config.LocalLanguage.OptionPage.GeneralPanelCategoryPath;
                this.DisplayName  = Config.LocalLanguage.OptionPage.GeneralPanelDisplayName;
            }
        }
Example #4
0
        /// <summary>
        ///     加载窗体语言
        /// </summary>
        private void LoadLanguage()
        {
            Language language = Config.LocalLanguage;

            //if (System.Globalization.CultureInfo.InstalledUICulture.Name.ToLower().Contains("zh-"))
            Text = Config.IsChineseLanguage ? "代理公布器" : "Proxy Window";
            if (!Config.LanguageFileName.Contains("Simplified Chinese.xml"))
            {
                object model = language.ProxyPage;
                _languageLoader.Load(model, typeof(ProxyForm), this);
            }
        }
Example #5
0
        /// <summary>
        ///     加载窗体语言
        /// </summary>
        private void LoadLanguage(Language language)
        {
            Text = CultureInfo.InstalledUICulture.Name.ToLower().Contains("zh-") ? "选项" : "Options";

            //lblForLPHVersion.Text = ProductVersion;

            if (!Config.LanguageFileName.Contains("Simplified Chinese.xml"))
            {
                object model = language.OptionPage;
                _languageLoader.Load(model, typeof(UserAgentPanel), this);
            }
        }
Example #6
0
        private void LoadLanguage()
        {
            Language language = Config.LocalLanguage;

            //if (System.Globalization.CultureInfo.InstalledUICulture.Name.ToLower().Contains("zh-"))

            if (!Config.LanguageFileName.Contains("Simplified Chinese.xml"))
            {
                object model = language.IeBrowserPage;
                languageLoader.Load(model, typeof(IEBrowserForm), this);
            }
        }
Example #7
0
        /// <summary>
        ///     加载窗体语言
        /// </summary>
        private void LoadLanguage(Language language)
        {
            Text = Config.IsChineseLanguage ? "选项" : "Options";

            //lblForLPHVersion.Text = ProductVersion;

            if (!Config.LanguageFileName.Contains("Simplified Chinese.xml"))
            {
                object model = language.OptionPage;
                _languageLoader.Load(model, typeof(TestPanel), this);
                this.CategoryPath = Config.LocalLanguage.OptionPage.TestPanelCategoryPath;
                this.DisplayName  = Config.LocalLanguage.OptionPage.TestPanelDisplayName;
            }
        }
Example #8
0
        /// <summary>
        ///     加载窗体语言
        /// </summary>
        public void LoadLanguage()
        {
            Language language = Config.LocalLanguage;

            if (!Config.LanguageFileName.Contains("Simplified Chinese.xml"))
            {
                object model = language.MainPage;
                _languageLoader.Load(model, typeof(MainForm), this);
            }

            Text = Config.IsChineseLanguage ? "龙门代理公布器" : "Loamen Proxy Hero";
            Text = Text + @" " + Application.ProductVersion;

#if DEBUG
            Text += @" RC版" + @"(到期时间:" + AboutBox.PublishDate.AddMonths(1).ToShortDateString() + @")";
#endif
            notifyIconMain.Text = Text;
        }
Example #9
0
        /// <summary>
        ///     加载窗体语言
        /// </summary>
        private void LoadLanguage()
        {
            Language language = Config.LocalLanguage;

            //if (System.Globalization.CultureInfo.InstalledUICulture.Name.ToLower().Contains("zh-"))
            if (Config.IsChineseLanguage)
            {
                Text = "插件管理";
            }
            else
            {
                Text = "Plugin Manage";
            }

            object model = language.PluginManagePage;

            languageLoader.Load(model, typeof(PluginManageForm), this);
        }
Example #10
0
        private void LoadLanguage()
        {
            Language language = Config.LocalLanguage;

            //if (System.Globalization.CultureInfo.InstalledUICulture.Name.ToLower().Contains("zh-"))
            if (Config.IsChineseLanguage)
            {
                Text = "输出";
            }
            else
            {
                Text = "Output";
            }
            if (!Config.LanguageFileName.Contains("Simplified Chinese.xml"))
            {
                object model = language.InformationPage;
                languageLoader.Load(model, typeof(OutputForm), this);
            }
        }