当前位置: 首页>>代码示例>>C#>>正文


C# CLocalization.GetLocalized方法代码示例

本文整理汇总了C#中CLocalization.GetLocalized方法的典型用法代码示例。如果您正苦于以下问题:C# CLocalization.GetLocalized方法的具体用法?C# CLocalization.GetLocalized怎么用?C# CLocalization.GetLocalized使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CLocalization的用法示例。


在下文中一共展示了CLocalization.GetLocalized方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SetLocalization

        public override void SetLocalization(CLocalization clocLanguage) {
            base.SetLocalization(clocLanguage);

            this.lblTextChatModerationCurrent.Text = clocLanguage.GetLocalized("uscTextChatModerationList.lblTextChatModerationCurrent");
            this.lblTextChatModerationAddSoldierName.Text = clocLanguage.GetLocalized("uscTextChatModerationList.lblTextChatModerationAddSoldierName");
            this.lnkTextChatModerationAddSoldierName.Text = clocLanguage.GetLocalized("uscTextChatModerationList.lnkTextChatModerationAddSoldierName");
        }
开发者ID:EBassie,项目名称:Procon-1,代码行数:7,代码来源:uscTextChatModerationListcs.cs

示例2: SetLocalization

        public void SetLocalization(CLocalization clocLanguage) {
            //this.m_prcClient.Language = clocLanguage;

            // private string[] m_astrTimeDescriptionsShort = new string[] { "y ", "y ", "M ", "M ", "w ", "w ", "d ", "d ", "h ", "h ", "m ", "m ", "s ", "s " };
            this.ma_strTimeDescriptionsShort[13] = clocLanguage.GetLocalized("global.Seconds.Short", null);
            this.ma_strTimeDescriptionsShort[12] = clocLanguage.GetLocalized("global.Seconds.Short", null);
            this.ma_strTimeDescriptionsShort[11] = clocLanguage.GetLocalized("global.Minutes.Short", null) + " ";
            this.ma_strTimeDescriptionsShort[10] = clocLanguage.GetLocalized("global.Minutes.Short", null) + " ";
            this.ma_strTimeDescriptionsShort[9] = clocLanguage.GetLocalized("global.Hours.Short", null) + " ";
            this.ma_strTimeDescriptionsShort[8] = clocLanguage.GetLocalized("global.Hours.Short", null) + " ";
            this.ma_strTimeDescriptionsShort[7] = clocLanguage.GetLocalized("global.Days.Short", null) + " ";
            this.ma_strTimeDescriptionsShort[6] = clocLanguage.GetLocalized("global.Days.Short", null) + " ";
            this.ma_strTimeDescriptionsShort[5] = clocLanguage.GetLocalized("global.Weeks.Short", null) + " ";
            this.ma_strTimeDescriptionsShort[4] = clocLanguage.GetLocalized("global.Weeks.Short", null) + " ";
            this.ma_strTimeDescriptionsShort[3] = clocLanguage.GetLocalized("global.Months.Short", null) + " ";
            this.ma_strTimeDescriptionsShort[2] = clocLanguage.GetLocalized("global.Months.Short", null) + " ";
            this.ma_strTimeDescriptionsShort[1] = clocLanguage.GetLocalized("global.Years.Short", null) + " ";
            this.ma_strTimeDescriptionsShort[0] = clocLanguage.GetLocalized("global.Years.Short", null) + " ";

            this.ma_strTimeDescriptionsLong[13] = " " + clocLanguage.GetLocalized("global.Seconds.Plural", null).ToLower();
            this.ma_strTimeDescriptionsLong[12] = " " + clocLanguage.GetLocalized("global.Seconds.Singular", null).ToLower();
            this.ma_strTimeDescriptionsLong[11] = " " + clocLanguage.GetLocalized("global.Minutes.Plural", null).ToLower() + " ";
            this.ma_strTimeDescriptionsLong[10] = " " + clocLanguage.GetLocalized("global.Minutes.Singular", null).ToLower() + " ";
            this.ma_strTimeDescriptionsLong[9] = " " + clocLanguage.GetLocalized("global.Hours.Plural", null).ToLower() + " ";
            this.ma_strTimeDescriptionsLong[8] = " " + clocLanguage.GetLocalized("global.Hours.Singular", null).ToLower() + " ";
            this.ma_strTimeDescriptionsLong[7] = " " + clocLanguage.GetLocalized("global.Days.Plural", null).ToLower() + " ";
            this.ma_strTimeDescriptionsLong[6] = " " + clocLanguage.GetLocalized("global.Days.Singular", null).ToLower() + " ";
            this.ma_strTimeDescriptionsLong[5] = " " + clocLanguage.GetLocalized("global.Weeks.Plural", null).ToLower() + " ";
            this.ma_strTimeDescriptionsLong[4] = " " + clocLanguage.GetLocalized("global.Weeks.Singular", null).ToLower() + " ";
            this.ma_strTimeDescriptionsLong[3] = " " + clocLanguage.GetLocalized("global.Months.Plural", null).ToLower() + " ";
            this.ma_strTimeDescriptionsLong[2] = " " + clocLanguage.GetLocalized("global.Months.Singular", null).ToLower() + " ";
            this.ma_strTimeDescriptionsLong[1] = " " + clocLanguage.GetLocalized("global.Years.Plural", null).ToLower() + " ";
            this.ma_strTimeDescriptionsLong[0] = " " + clocLanguage.GetLocalized("global.Years.Singular", null).ToLower() + " ";

            this.cboBanlistTimeMultiplier.Items[0] = clocLanguage.GetLocalized("global.Minutes.Plural", null);
            this.cboBanlistTimeMultiplier.Items[1] = clocLanguage.GetLocalized("global.Hours.Plural", null);
            this.cboBanlistTimeMultiplier.Items[2] = clocLanguage.GetLocalized("global.Days.Plural", null);
            this.cboBanlistTimeMultiplier.Items[3] = clocLanguage.GetLocalized("global.Weeks.Plural", null);
            this.cboBanlistTimeMultiplier.Items[4] = clocLanguage.GetLocalized("global.Months.Plural", null);

            this.tabBanlist.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist", null);
            this.colName.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.lsvBanlist.colName", null);
            this.colIP.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.lsvBanlist.colIP", null);
            this.colGUID.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.lsvBanlist.colGUID", null);
            this.colType.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.lsvBanlist.colType", null);
            //this.colTime.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.lsvBanlist.colTime", null);
            //this.colBanLength.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.lsvBanlist.colBanLength", null);
            this.colTimeRemaining.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.lsvBanlist.colTimeRemaining", null);
            this.colReason.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.lsvBanlist.colReason", null);
            this.btnBanlistClearBanlist.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.btnBanlistClearBanlist", null);
            //this.btnBanlistClearBanlist.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.btnBanlistClearNameList", null);
            //this.btnBanlistClearIPList.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.btnBanlistClearIPList", null);
            this.btnBanlistUnban.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.btnBanlistUnban", null);

            this.tabMaplist.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist");

            this.tabReservedSlots.Text = clocLanguage.GetLocalized("uscListControlPanel.tabReservedSlots", null);
            this.lblReservedCurrent.Text = clocLanguage.GetLocalized("uscListControlPanel.tabReservedSlots.lblReservedCurrent", null);
            this.colSoldierNames.Text = clocLanguage.GetLocalized("uscListControlPanel.tabReservedSlots.lsvReservedList.colSoldierNames", null);
            this.lblReservedAddSoldierName.Text = clocLanguage.GetLocalized("uscListControlPanel.tabReservedSlots.lblReservedAddSoldierName", null);
            this.lnkReservedAddSoldierName.Text = clocLanguage.GetLocalized("uscListControlPanel.tabReservedSlots.lnkReservedAddSoldierName", null);

            this.tabSpectatorSlots.Text = clocLanguage.GetLocalized("uscListControlPanel.tabSpectatorSlots", null);
            this.lblSpectatorCurrent.Text = clocLanguage.GetLocalized("uscListControlPanel.tabSpectatorSlots.lblSpectatorCurrent", null);
            this.colSpectatorSoldierNames.Text = clocLanguage.GetLocalized("uscListControlPanel.tabSpectatorSlots.lsvSpectatorList.colSpectatorSoldierNames", null);
            this.lblSpectatorAddSoldierName.Text = clocLanguage.GetLocalized("uscListControlPanel.tabSpectatorSlots.lblSpectatorAddSoldierName", null);
            this.lnkSpectatorAddSoldierName.Text = clocLanguage.GetLocalized("uscListControlPanel.tabSpectatorSlots.lnkSpectatorAddSoldierName", null);

            this.lnkCloseOpenManualBans.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.lnkCloseOpenManualBans.Close", null);
            this.rdoBanlistName.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.rdoBanlistName", null);
            //this.rdoBanlistPbGUID.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.rdoBanlistGUID", null);
            this.lblBanlistReason.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.lblBanlistReason", null) + ":";
            this.rdoBanlistPermanent.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.rdoBanlistPermanent", null);
            this.rdoBanlistTemporary.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.rdoBanlistTemporary", null);
            this.lblBanlistTime.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.lblBanlistTime", null) + ":";
            this.btnBanlistAddBan.Text = clocLanguage.GetLocalized("uscListControlPanel.tabBanlist.btnBanlistAddBan", null);

            this.uscMaplist1.SetLocalization(clocLanguage);

            this.tabTextChatModeration.Text = clocLanguage.GetLocalized("uscTextChatModerationList.Title", null);
            this.uscTextChatModerationListcs1.SetLocalization(clocLanguage);
        }
开发者ID:NSGod,项目名称:Procon-1,代码行数:82,代码来源:uscListControlPanel.cs

示例3: SetLocalization

        public override void SetLocalization(CLocalization clocLanguage)
        {
            base.SetLocalization(clocLanguage);

            this.DisplayName = clocLanguage.GetLocalized("ConfigGenerator.Title");
            this.btnCopyToClipboard.Text = clocLanguage.GetLocalized("ConfigGenerator.btnCopyToClipboard");
        }
开发者ID:eaceaser,项目名称:PRoCon,代码行数:7,代码来源:uscServerSettingsConfigGenerator.cs

示例4: SetLocalization

        public void SetLocalization(CLocalization clocLanguage) {
            this.Text = clocLanguage.GetLocalized("frmOptions.Title");

            this.btnClose.Text = clocLanguage.GetLocalized("global.close");

            this.tabBasics.Text = clocLanguage.GetLocalized("frmOptions.tabBasics");
            this.lblBasicsLanguage.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicsLanguage");
            this.btnBasicsSetLanguage.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.btnBasicsSetLanguage");
            this.lblBasicsAuthor.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicsAuthor");
            this.lblBasicsLogging.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicsLogging");
            this.chkBasicsEnableChatLogging.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsEnableChatLogging");
            this.chkBasicsEnableConsoleLogging.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsEnableConsoleLogging");
            this.chkBasicsEnableEventsLogging.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsEnableEventsLogging");
            this.chkBasicsEnablePluginLogging.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsEnablePluginLogging");

            this.lblBasicsPrivacy.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicsPrivacy");
            this.chkBasicsAutoCheckDownloadForUpdates.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsAutoCheckDownloadForUpdates");
            this.chkBasicsAutoApplyUpdates.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsAutoApplyUpdates"); 
            this.chkBasicsAutoCheckGameConfigsForUpdates.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsAutoCheckGameConfigsForUpdates");

            this.lblBasicPreferences.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicPreferences");
            this.lblBasicsShowWindow.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicsShowWindow");
            this.cboBasicsShowWindow.Items[0] = clocLanguage.GetLocalized("frmOptions.tabBasics.cboBasicsShowWindow.TaskTray");
            this.cboBasicsShowWindow.Items[1] = clocLanguage.GetLocalized("frmOptions.tabBasics.cboBasicsShowWindow.Task");
            this.chkBasicsCloseToTray.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsCloseToTray");
            this.chkBasicsMinimizeToTray.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsMinimizeToTray");

            this.tabPlugins.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins");

            this.lblPluginsSecurity.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsSecurity");
            this.cboPluginsSandboxOptions.Items[0] = clocLanguage.GetLocalized("frmOptions.tabPlugins.cboSandboxOptions.Sandbox");
            this.cboPluginsSandboxOptions.Items[1] = clocLanguage.GetLocalized("frmOptions.tabPlugins.cboSandboxOptions.Trusted");

            this.lblPluginsOutgoingConnections.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsOutgoingConnections");
            this.lblPluginsTrustedHostDomain.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsTrustedHostDomain");
            this.colTrustedDomainsHost.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsTrustedHostDomain");
            this.lblPluginsPort.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsPort");
            this.colTrustedPort.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsPort");
            this.lblPluginsDatabases.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsDatabases");
            this.chkAllowODBCConnections.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.chkAllowODBCConnections");
            this.lblPluginsMail.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsMail");
            this.chkAllowSmtpConnections.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.chkAllowSmtpConnections");

            this.lblPluginsChangesAfterRestart.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsChangesAfterRestart");

            this.lblHttpServerTitle.Text = clocLanguage.GetLocalized("frmOptions.lblHttpServerTitle");

            this.lblHttpServerBindingIP.Text = clocLanguage.GetLocalized("frmOptions.lblHttpServerBindingIP");
            this.lblHttpServerStartPort.Text = clocLanguage.GetLocalized("frmOptions.lblHttpServerStartPort");
            this.lblBindingExplanation.Text = clocLanguage.GetLocalized("frmOptions.lblBindingExplanation"); 
            
            this.lnkStartStopHttpServer.Text = clocLanguage.GetLocalized("frmOptions.lnkStartStopHttpServer.Start");
            this.lnkHttpServerForwardedTest.Text = clocLanguage.GetLocalized("frmOptions.lnkHttpServerForwardedTest");

            this.lnkHttpServerForwardedTest.Text = clocLanguage.GetLocalized("frmOptions.lnkHttpServerForwardedTest");
            this.lblHttpServerForwardedTestStatus.Text = clocLanguage.GetLocalized("frmOptions.lblHttpServerForwardedTestStatus.Unknown");

            this.tabAdv.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced");

            this.lblAdvPlayerTab.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvPlayerTab");
            this.lblAdvChatTab.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvChatTab");
            this.chkAdvEnableAdminMoveMsg.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkAdvEnableAdminMoveMsg");
            this.chkAdvEnableChatAdminName.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkAdvEnableChatAdminName");

            this.lblAdvLayerTabs.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvLayerTabs");
            this.chkAdvHideLocalPluginsTab.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvLayerTabs.chkAdvHideLocalPluginsTab");
            this.chkAdvHideLocalAccountsTab.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvLayerTabs.chkAdvHideLocalAccountsTab");
            this.lblAdvLayerTabsChangeNotice.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvLayerTabs.lblAdvLayerTabsChangeNotice");

            this.lblAdvConVisuals.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvConVisuals");
            this.chkAdvShowRoundTimerConstantly.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvConVisuals.chkAdvShowRoundTimerConstantly");
            this.chkAdvShowCfmMsgRoundRestartNext.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvConVisuals.chkAdvShowCfmMsgRoundRestartNext");

            this.lblAdvSpecialSwitches.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvSpecialSwitches");
            this.chkAdvShowDICESpecialOptions.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvSpecialSwitches.chkAdvShowDICESpecialOptions");
            this.lblAdvShowDICESpecialOptionsNotice.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvSpecialSwitches.lblAdvShowDICESpecialOptionsNotice");

            // StatsLinks
            this.tabPlayerLookup.Text = clocLanguage.GetLocalized("frmOptions.tabPlayerLookup");
            this.lblStatsPlayerTab.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvPlayerTab");
            this.colStatsLinksName.Text = clocLanguage.GetLocalized("frmOptions.tabPlayerLookup.colStatsLinksName");
            this.colStatsLinkUrl.Text = clocLanguage.GetLocalized("frmOptions.tabPlayerLookup.colStatsLinkUrl");
            this.lblStatsLinkName.Text = clocLanguage.GetLocalized("frmOptions.tabPlayerLookup.lblStatsLinkName");
            this.lblStatsLinkUrl.Text = clocLanguage.GetLocalized("frmOptions.tabPlayerLookup.lblStatsLinkUrl");
            this.lblStatsLinkHelpText.Text = clocLanguage.GetLocalized("frmOptions.tabPlayerLookup.lblStatsLinkHelpText", new String[] { this.m_praApplication.OptionsSettings.StatsLinksMaxNum.ToString() }).Replace("|*|", Environment.NewLine);

            //this.m_strSetLanguageFileName = clocLanguage.FileName;
        }
开发者ID:ratdart,项目名称:Procon-1,代码行数:88,代码来源:frmOptions.cs

示例5: SetLocalization

        public void SetLocalization(CLocalization clocLanguage)
        {
            this.Text = clocLanguage.GetLocalized("frmOptions.Title");

            this.btnClose.Text = clocLanguage.GetLocalized("global.close");

            this.tabBasics.Text = clocLanguage.GetLocalized("frmOptions.tabBasics");
            this.lblBasicsLanguage.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicsLanguage");
            this.btnBasicsSetLanguage.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.btnBasicsSetLanguage");
            this.lblBasicsAuthor.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicsAuthor");
            this.lblBasicsLogging.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicsLogging");
            this.chkBasicsEnableChatLogging.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsEnableChatLogging");
            this.chkBasicsEnableConsoleLogging.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsEnableConsoleLogging");
            this.chkBasicsEnableEventsLogging.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsEnableEventsLogging");
            this.chkBasicsEnablePluginLogging.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsEnablePluginLogging");

            this.lblBasicsPrivacy.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicsPrivacy");
            this.chkBasicsAutoCheckDownloadForUpdates.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsAutoCheckDownloadForUpdates");
            this.chkBasicsAutoApplyUpdates.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsAutoApplyUpdates");

            this.lblBasicPreferences.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicPreferences");
            this.lblBasicsShowWindow.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicsShowWindow");
            this.cboBasicsShowWindow.Items[0] = clocLanguage.GetLocalized("frmOptions.tabBasics.cboBasicsShowWindow.TaskTray");
            this.cboBasicsShowWindow.Items[1] = clocLanguage.GetLocalized("frmOptions.tabBasics.cboBasicsShowWindow.Task");
            this.chkBasicsCloseToTray.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsCloseToTray");
            this.chkBasicsMinimizeToTray.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsMinimizeToTray");

            this.tabPlugins.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins");

            this.lblPluginsSecurity.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsSecurity");
            this.cboPluginsSandboxOptions.Items[0] = clocLanguage.GetLocalized("frmOptions.tabPlugins.cboSandboxOptions.Sandbox");
            this.cboPluginsSandboxOptions.Items[1] = clocLanguage.GetLocalized("frmOptions.tabPlugins.cboSandboxOptions.Trusted");

            this.lblPluginsOutgoingConnections.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsOutgoingConnections");
            this.lblPluginsTrustedHostDomain.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsTrustedHostDomain");
            this.colTrustedDomainsHost.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsTrustedHostDomain");
            this.lblPluginsPort.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsPort");
            this.colTrustedPort.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsPort");
            this.lblPluginsDatabases.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsDatabases");
            this.chkAllowODBCConnections.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.chkAllowODBCConnections");

            this.lblPluginsChangesAfterRestart.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsChangesAfterRestart");

            this.lblHttpServerTitle.Text = clocLanguage.GetLocalized("frmOptions.lblHttpServerTitle");

            this.lblHttpServerBindingIP.Text = clocLanguage.GetLocalized("frmOptions.lblHttpServerBindingIP");
            this.lblHttpServerStartPort.Text = clocLanguage.GetLocalized("frmOptions.lblHttpServerStartPort");
            this.lblBindingExplanation.Text = clocLanguage.GetLocalized("frmOptions.lblBindingExplanation");

            this.lnkStartStopHttpServer.Text = clocLanguage.GetLocalized("frmOptions.lnkStartStopHttpServer.Start");
            this.lnkHttpServerForwardedTest.Text = clocLanguage.GetLocalized("frmOptions.lnkHttpServerForwardedTest");

            this.lnkHttpServerForwardedTest.Text = clocLanguage.GetLocalized("frmOptions.lnkHttpServerForwardedTest");
            this.lblHttpServerForwardedTestStatus.Text = clocLanguage.GetLocalized("frmOptions.lblHttpServerForwardedTestStatus.Unknown");

            this.tabAdv.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced");

            this.lblAdvPlayerTab.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvPlayerTab");
            this.lblAdvChatTab.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvChatTab");
            this.chkAdvEnableAdminMoveMsg.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkAdvEnableAdminMoveMsg");
            this.chkAdvEnableChatAdminName.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkAdvEnableChatAdminName");

            this.lblAdvLayerTabs.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvLayerTabs");
            this.chkAdvHideLocalPluginsTab.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvLayerTabs.chkAdvHideLocalPluginsTab");
            this.chkAdvHideLocalAccountsTab.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvLayerTabs.chkAdvHideLocalAccountsTab");
            this.lblAdvLayerTabsChangeNotice.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvLayerTabs.lblAdvLayerTabsChangeNotice");

            this.lblAdvConVisuals.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvConVisuals");
            this.chkAdvShowRoundTimerConstantly.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvConVisuals.chkAdvShowRoundTimerConstantly");

            //this.m_strSetLanguageFileName = clocLanguage.FileName;
        }
开发者ID:eaceaser,项目名称:PRoCon,代码行数:72,代码来源:frmOptions.cs

示例6: SetLocalization

        public void SetLocalization(CLocalization clocLanguage) {
            this.Text = clocLanguage.GetLocalized("frmOptions.Title");

            this.btnClose.Text = clocLanguage.GetLocalized("global.close");

            this.tabBasics.Text = clocLanguage.GetLocalized("frmOptions.tabBasics");
            this.lblBasicsLanguage.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicsLanguage");
            this.btnBasicsSetLanguage.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.btnBasicsSetLanguage");
            this.lblBasicsAuthor.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicsAuthor");
            this.lblBasicsLogging.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicsLogging");
            this.chkBasicsEnableChatLogging.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsEnableChatLogging");
            this.chkBasicsEnableConsoleLogging.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsEnableConsoleLogging");
            this.chkBasicsEnableEventsLogging.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsEnableEventsLogging");
            this.chkBasicsEnablePluginLogging.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsEnablePluginLogging");

            this.lblBasicsPrivacy.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicsPrivacy");
            this.chkBasicsAutoCheckDownloadForUpdates.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsAutoCheckDownloadForUpdates");
            this.chkBasicsAutoApplyUpdates.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsAutoApplyUpdates"); 
            this.chkBasicsAutoCheckGameConfigsForUpdates.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsAutoCheckGameConfigsForUpdates");

            this.m_strAutoApplyUpdateInfo = clocLanguage.GetDefaultLocalized("Already downloaded updates are installed in case of a restart!" + Environment.NewLine
                + "In case you don't want this you should disable the automatic download of updates also.", "frmOptions.tabBasics.AutoApplyUpdateInfo").Replace("|*|", Environment.NewLine);

            this.lblBasicPreferences.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicPreferences");
            this.lblBasicsShowWindow.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.lblBasicsShowWindow");
            this.cboBasicsShowWindow.Items[0] = clocLanguage.GetLocalized("frmOptions.tabBasics.cboBasicsShowWindow.TaskTray");
            this.cboBasicsShowWindow.Items[1] = clocLanguage.GetLocalized("frmOptions.tabBasics.cboBasicsShowWindow.Task");
            this.chkBasicsCloseToTray.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsCloseToTray");
            this.chkBasicsMinimizeToTray.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkBasicsMinimizeToTray");

            this.tabPlugins.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins");

            this.lblPluginsSecurity.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsSecurity");
            this.cboPluginsSandboxOptions.Items[0] = clocLanguage.GetLocalized("frmOptions.tabPlugins.cboSandboxOptions.Sandbox");
            this.cboPluginsSandboxOptions.Items[1] = clocLanguage.GetLocalized("frmOptions.tabPlugins.cboSandboxOptions.Trusted");

            this.lblPluginsOutgoingConnections.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsOutgoingConnections");
            this.lblPluginsTrustedHostDomain.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsTrustedHostDomain");
            this.colTrustedDomainsHost.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsTrustedHostDomain");
            this.lblPluginsPort.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsPort");
            this.colTrustedPort.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsPort");
            this.lblPluginsDatabases.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsDatabases");
            this.chkAllowODBCConnections.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.chkAllowODBCConnections");
            this.lblPluginsMail.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsMail");
            this.chkAllowSmtpConnections.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.chkAllowSmtpConnections");

            this.lblPluginsChangesAfterRestart.Text = clocLanguage.GetLocalized("frmOptions.tabPlugins.lblPluginsChangesAfterRestart");

            this.lblHttpServerTitle.Text = clocLanguage.GetLocalized("frmOptions.lblHttpServerTitle");

            this.lblHttpServerBindingIP.Text = clocLanguage.GetLocalized("frmOptions.lblHttpServerBindingIP");
            this.lblHttpServerStartPort.Text = clocLanguage.GetLocalized("frmOptions.lblHttpServerStartPort");
            this.lblBindingExplanation.Text = clocLanguage.GetLocalized("frmOptions.lblBindingExplanation"); 
            
            this.lnkStartStopHttpServer.Text = clocLanguage.GetLocalized("frmOptions.lnkStartStopHttpServer.Start");
            this.lnkHttpServerForwardedTest.Text = clocLanguage.GetLocalized("frmOptions.lnkHttpServerForwardedTest");

            this.lnkHttpServerForwardedTest.Text = clocLanguage.GetLocalized("frmOptions.lnkHttpServerForwardedTest");
            this.lblHttpServerForwardedTestStatus.Text = clocLanguage.GetLocalized("frmOptions.lblHttpServerForwardedTestStatus.Unknown");

            this.tabAdv.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced");

            this.lblAdvPlayerTab.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvPlayerTab");
            this.lblAdvChatTab.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvChatTab");
            this.chkAdvEnableAdminMoveMsg.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkAdvEnableAdminMoveMsg");
            this.chkAdvEnableChatAdminName.Text = clocLanguage.GetLocalized("frmOptions.tabBasics.chkAdvEnableChatAdminName");

            this.lblAdvLayerTabs.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvLayerTabs");
            this.chkAdvHideLocalPluginsTab.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvLayerTabs.chkAdvHideLocalPluginsTab");
            this.chkAdvHideLocalAccountsTab.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvLayerTabs.chkAdvHideLocalAccountsTab");
            this.lblAdvLayerTabsChangeNotice.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvLayerTabs.lblAdvLayerTabsChangeNotice");

            this.lblAdvConVisuals.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvConVisuals");
            this.chkAdvShowRoundTimerConstantly.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvConVisuals.chkAdvShowRoundTimerConstantly");
            this.chkAdvShowCfmMsgRoundRestartNext.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvConVisuals.chkAdvShowCfmMsgRoundRestartNext");

            this.lblAdvSpecialSwitches.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvSpecialSwitches");
            this.chkAdvShowDICESpecialOptions.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvSpecialSwitches.chkAdvShowDICESpecialOptions");
            this.lblAdvShowDICESpecialOptionsNotice.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvSpecialSwitches.lblAdvShowDICESpecialOptionsNotice");

            // Advanced2
            this.tabAdv2.Text = clocLanguage.GetDefaultLocalized("Advanced2", "frmOptions.tabAdvanced2");
            this.lblAdv2BanTab.Text = clocLanguage.GetDefaultLocalized("Bans", "frmOptions.lblAdv2BanTab");
            this.chkAdv2EnableAdminReason.Text = clocLanguage.GetDefaultLocalized("Enable Admin name in ban reason", "frmOptions.tabBasics.chkAdv2EnableAdminReason");

            // StatsLinks
            this.tabPlayerLookup.Text = clocLanguage.GetLocalized("frmOptions.tabPlayerLookup");
            this.lblStatsPlayerTab.Text = clocLanguage.GetLocalized("frmOptions.tabAdvanced.lblAdvPlayerTab");
            this.colStatsLinksName.Text = clocLanguage.GetLocalized("frmOptions.tabPlayerLookup.colStatsLinksName");
            this.colStatsLinkUrl.Text = clocLanguage.GetLocalized("frmOptions.tabPlayerLookup.colStatsLinkUrl");
            this.lblStatsLinkName.Text = clocLanguage.GetLocalized("frmOptions.tabPlayerLookup.lblStatsLinkName");
            this.lblStatsLinkUrl.Text = clocLanguage.GetLocalized("frmOptions.tabPlayerLookup.lblStatsLinkUrl");
            this.lblStatsLinkHelpText.Text = clocLanguage.GetLocalized("frmOptions.tabPlayerLookup.lblStatsLinkHelpText", new String[] { this.m_praApplication.OptionsSettings.StatsLinksMaxNum.ToString() }).Replace("|*|", Environment.NewLine);

            // PluginMaxRuntime
            this.lblPluginMaxRuntime.Text = clocLanguage.GetDefaultLocalized("Plugin runtime limit (per plugin)", "frmOptions.tabPlugins.lblPluginMaxRuntime");
            this.numPluginMaxRuntimeMin.Value = this.m_praApplication.OptionsSettings.PluginMaxRuntime_m;
            this.lblPluginMaxRuntimeMin.Text = clocLanguage.GetDefaultLocalized("min", "frmOptions.tabPlugins.lblPluginMaxRuntimeMin");
            this.numPluginMaxRuntimeSec.Value = this.m_praApplication.OptionsSettings.PluginMaxRuntime_s;
            this.lblPluginMaxRuntimeSec.Text = clocLanguage.GetDefaultLocalized("sec", "frmOptions.tabPlugins.lblPluginMaxRuntimeSec");
//.........这里部分代码省略.........
开发者ID:phelom,项目名称:Procon-1,代码行数:101,代码来源:frmOptions.cs

示例7: SetLocalization

        public override void SetLocalization(CLocalization clocLanguage) {

            this.lblMaplistCurrentPlayList.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lblMaplistCurrentPlayList");
            this.lnkMaplistChangePlaylist.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lnkMaplistChangePlaylist");
            this.lblMaplistCurrentMaplist.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lblMaplistCurrentMaplist");

            this.colPoolGameType.Text = this.colGameType.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lsvMaplist.colGametype");
            this.colPoolMapname.Text = this.colMapname.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lsvMaplist.colMapname");
            this.colPoolMapFilename.Text = this.colMapFilename.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lsvMaplist.colMapFilename");
            this.lblMaplistMustChangeWarning.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lblMaplistMustChangeWarning");
            this.lblMaplistPool.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lblMaplistPool");

            this.colMapRounds.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lsvMaplist.colMapRounds");
            this.lblMaplistRounds.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lblMaplistRounds");

            this.setNextMapToolStripMenuItem.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.ctxMapOptions.setNextMapToolStripMenuItem");

            this.toolTipMaplistRefresh.SetToolTip(this.btnMaplistRefresh, clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lsvMaplist.MaplistRefreshToolTip"));
            this.toolTipMaplistRefresh.SetToolTip(this.btnMaplistClear, clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lsvMaplist.MaplistClearToolTip"));
        }
开发者ID:NSGod,项目名称:Procon-1,代码行数:20,代码来源:uscMaplist.cs

示例8: SetLocalization

        public override void SetLocalization(CLocalization clocLanguage)
        {
            this.lblMaplistCurrentPlayList.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lblMaplistCurrentPlayList");
            this.lnkMaplistChangePlaylist.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lnkMaplistChangePlaylist");
            this.lblMaplistCurrentMaplist.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lblMaplistCurrentMaplist");

            this.colPoolGameType.Text = this.colGameType.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lsvMaplist.colGametype");
            this.colPoolMapname.Text = this.colMapname.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lsvMaplist.colMapname");
            this.colPoolMapFilename.Text = this.colMapFilename.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lsvMaplist.colMapFilename");
            this.lblMaplistMustChangeWarning.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lblMaplistMustChangeWarning");
            this.lblMaplistPool.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lblMaplistPool");

            this.colMapRounds.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lsvMaplist.colMapRounds");
            this.lblMaplistRounds.Text = clocLanguage.GetLocalized("uscListControlPanel.tabMaplist.lblMaplistRounds");
        }
开发者ID:eaceaser,项目名称:PRoCon,代码行数:15,代码来源:uscMaplist.cs

示例9: GetConfirmationLabel

        public static string GetConfirmationLabel(out bool blAbleToPunish, string strBanDescription, CPrivileges cpPrivileges, CLocalization clocLanguage, bool blKill, bool blKick, bool blPerm, bool blTemp, TextBox txtTime, ComboBox cboTimeMultiplier, string[] a_strTimeDescriptionsLong, int iTempBanCeiling) {

            string strLabel = String.Empty;

            blAbleToPunish = false;

            if (clocLanguage != null) {

                if (blKill == true) {
                    strLabel = clocLanguage.GetLocalized("uscPlayerPunishPanel.lblConfirmation.Kill", new string[] { strBanDescription });
                    blAbleToPunish = true && (cpPrivileges.CanKillPlayers == true);
                }
                else if (blKick == true) {
                    strLabel = clocLanguage.GetLocalized("uscPlayerPunishPanel.lblConfirmation.Kick", new string[] { strBanDescription });
                    blAbleToPunish = true && (cpPrivileges.CanKickPlayers == true);
                }
                else if (blPerm == true) {
                    strLabel = clocLanguage.GetLocalized("uscPlayerPunishPanel.lblConfirmation.PermanentBan", new string[] { strBanDescription });
                    blAbleToPunish = true && (cpPrivileges.CanPermanentlyBanPlayers == true);
                }
                else if (blTemp == true) {

                    string strBanLength = uscPlayerPunishPanel.GetBanLength(txtTime, cboTimeMultiplier, a_strTimeDescriptionsLong);

                    if (strBanLength.Length > 0) {
                        // strLabel += " for " + strBanLength;

                        if (cpPrivileges.CanTemporaryBanPlayers == true && cpPrivileges.CanPermanentlyBanPlayers == false && (uscPlayerPunishPanel.GetBanLength(txtTime, cboTimeMultiplier) * 60) > iTempBanCeiling) {
                            strLabel = clocLanguage.GetLocalized("uscPlayerPunishPanel.lblConfirmation.TemporaryBan.ToLong", new string[] { uscPlayerPunishPanel.SecondsToText((UInt32)(iTempBanCeiling), a_strTimeDescriptionsLong) });
                            blAbleToPunish = false;
                        }
                        else {
                            strLabel = clocLanguage.GetLocalized("uscPlayerPunishPanel.lblConfirmation.TemporaryBan", new string[] { strBanDescription, clocLanguage.GetLocalized("uscPlayerPunishPanel.lblConfirmation.TemporaryBan.Time", new string[] { strBanLength }) });
                            blAbleToPunish = true && (cpPrivileges.CanTemporaryBanPlayers == true);
                        }
                    }
                    else {
                        strLabel = clocLanguage.GetLocalized("uscPlayerPunishPanel.lblConfirmation.TemporaryBan", new string[] { strBanDescription, String.Empty });
                        blAbleToPunish = false;
                    }
                }

                strLabel += ":";
            }

            return strLabel;
        }
开发者ID:Webs961,项目名称:Procon-1,代码行数:47,代码来源:uscPlayerPunishPanel.cs


注:本文中的CLocalization.GetLocalized方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。