コード例 #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);
            }
        }
コード例 #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);
            }
        }
コード例 #3
0
ファイル: GeneralPanel.cs プロジェクト: slj99/ProxyHero
        /// <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;
            }
        }
コード例 #4
0
ファイル: ProxyForm.cs プロジェクト: slj99/ProxyHero
        /// <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);
            }
        }
コード例 #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);
            }
        }
コード例 #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);
            }
        }
コード例 #7
0
ファイル: TestPanel.cs プロジェクト: slj99/ProxyHero
        /// <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;
            }
        }
コード例 #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;
        }
コード例 #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);
        }
コード例 #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);
            }
        }