public uscChatPanel() { InitializeComponent(); //this.m_stmChatFile = null; //this.m_stwChatFile = null; //this.m_blChatLogging = false; this.m_clocLanguage = null; this.m_llChatHistory = new LinkedList<string>(); this.cboDisplayChatTime.Items.Clear(); this.cboDisplayChatTime.Items.Add(2000); this.cboDisplayChatTime.Items.Add(4000); this.cboDisplayChatTime.Items.Add(6000); this.cboDisplayChatTime.Items.Add(8000); this.cboDisplayChatTime.Items.Add(10000); this.cboDisplayChatTime.Items.Add(15000); this.cboDisplayChatTime.Items.Add(20000); this.cboDisplayChatTime.Items.Add(25000); this.cboDisplayChatTime.Items.Add(30000); this.cboDisplayChatTime.Items.Add(35000); this.cboDisplayChatTime.Items.Add(40000); this.cboDisplayChatTime.Items.Add(45000); this.cboDisplayChatTime.Items.Add(50000); this.cboDisplayChatTime.Items.Add(55000); this.cboDisplayChatTime.Items.Add(59999); this.cboDisplayChatTime.SelectedIndex = 4; this.cboDisplayList.SelectedIndex = 0; this.rtbChatBox.Flushed += new Action<object, EventArgs>(rtbChatBox_Flushed); this.m_regRemoveCaretCodes = new Regex(@"\^[0-9]|\^b|\^i|\^n", RegexOptions.Compiled); }
public uscAccountsPanel() { InitializeComponent(); //this.m_uscParentPanel = null; this._main = null; this._language = null; //this.m_spPrivileges = new CPrivileges(); //this.m_spPrivileges.PrivilegesFlags = CPrivileges.FullPrivilegesFlags; this.uscPrivileges.OnUpdatePrivileges += new uscPrivilegesSelection.OnUpdatePrivilegesDelegate(uscPrivileges_OnUpdatePrivileges); this.uscPrivileges.OnCancelPrivileges += new uscPrivilegesSelection.OnCancelPrivilegesDelegate(uscPrivileges_OnCancelPrivileges); }
public uscConsolePanel() { InitializeComponent(); this.m_clocLanguage = null; this.m_llCommandsHistory = new LinkedList<string>(); this.m_llPunkbusterCommandsHistory = new LinkedList<string>(); this.m_regRemoveCaretCodes = new Regex(@"\^[0-9]|\^b|\^i|\^n", RegexOptions.Compiled); this.rtbConsoleBox.Flushed += new Action<object, EventArgs>(rtbConsoleBox_Flushed); this.rtbPunkbusterBox.Flushed += new Action<object, EventArgs>(rtbPunkbusterBox_Flushed); }
public void SetLocalization(CLocalization clocLanguage) { this.m_clocLanguage = clocLanguage; /* this.cmiExportSettings.Text = this.m_clocLanguage.GetLocalized("uscServerSettingsPanel.cmiExportSettings"); this.cmiImportSettings.Text = this.m_clocLanguage.GetLocalized("uscServerSettingsPanel.cmiImportSettings"); this.cmiConfigGenerator.Text = this.m_clocLanguage.GetLocalized("uscServerSettingsPanel.cmiConfigGenerator"); */ foreach (uscServerSettings page in this.cboSelectedSettingsPanel.Items) { page.SetLocalization(clocLanguage); } }
public TeamNamesDisplayLegend(KillDisplayColours legendType, Dictionary<int, Color> dicTeamColours, CLocalization language, CMap mapDetails) { this.TeamNamesText = new MapTextBlock(); this.LegendType = legendType; if (legendType == KillDisplayColours.TeamColours) { foreach (CTeamName teamName in mapDetails.TeamNames) { if (teamName.TeamID > 0 && dicTeamColours.ContainsKey(teamName.TeamID)) { this.TeamNamesText.Strings.Add(new MapTextBlockString(language.GetLocalized(teamName.LocalizationKey), ControlPaint.LightLight(dicTeamColours[teamName.TeamID]), true)); } } } else { this.TeamNamesText.Strings.Add(new MapTextBlockString("Killer", Color.LightSeaGreen, true)); this.TeamNamesText.Strings.Add(new MapTextBlockString("Victim", ControlPaint.Light(Color.Red), true)); } }
public void SetLocalization(CLocalization clocLanguage) { if ((this.m_clocLanguage = clocLanguage) != null) { this.colSource.Text = this.m_clocLanguage.GetLocalized("uscEvents.colSource", null); this.colTime.Text = this.m_clocLanguage.GetLocalized("uscEvents.colTime", null); this.colEvent.Text = this.m_clocLanguage.GetLocalized("uscEvents.colEvent", null); this.colAdmin.Text = this.m_clocLanguage.GetLocalized("uscEvents.colAdmin", null); this.colMessage.Text = this.m_clocLanguage.GetLocalized("uscEvents.colMessage", null); this.lnkShowHide.Text = this.m_clocLanguage.GetLocalized("uscEvents.lnkShowHide.Hide", null); this.gpbCaptures.Text = this.m_clocLanguage.GetLocalized("uscEvents.gpbCaptures", null); this.lblMaximumDisplayed.Text = this.m_clocLanguage.GetLocalized("uscEvents.gpbCaptures.lblMaximumDisplayed", null); this.lblEvents.Text = this.m_clocLanguage.GetLocalized("uscEvents.gpbCaptures.lblEvents", null); this.lblCapturingEvents.Text = this.m_clocLanguage.GetLocalized("uscEvents.gpbCaptures.lblCapturingEvents", null); this.lnkAddCapture.Text = this.m_clocLanguage.GetLocalized("uscEvents.gpbCaptures.lnkAddCapture", null); this.btncleareventbox.Text = this.m_clocLanguage.GetLocalized("uscEvents.gpbCaptures.btncleareventbox", null); this.chkEventsEnableScrolling.Text = this.m_clocLanguage.GetLocalized("uscEvents.gpbCaptures.chkEventsEnableScrolling", null); } }
public override void SetLocalization(CLocalization clocLanguage) { base.SetLocalization(clocLanguage); this.chkSettingsTeamkillCountLimit.Text = this.Language.GetLocalized("uscServerSettingsPanel.chkSettingsTeamkillCountLimit"); this.lnkSettingsTeamkillCountLimit.Text = this.Language.GetLocalized("uscServerSettingsPanel.lnkSettingsTeamkillCountLimit"); this.chkSettingsTeamkillKickForBan.Text = this.Language.GetDefaultLocalized("No teamkill ban limit", "uscServerSettingsPanel.chkSettingsTeamkillKickForBan"); this.lnkSettingsTeamkillKickForBan.Text = this.Language.GetDefaultLocalized("Apply", "uscServerSettingsPanel.lnkSettingsTeamkillKickForBan"); this.chkSettingsTeamkillValueLimit.Text = this.Language.GetLocalized("uscServerSettingsPanel.chkSettingsTeamkillValueLimit"); this.lnkSettingsTeamkillValueLimit.Text = this.Language.GetLocalized("uscServerSettingsPanel.lnkSettingsTeamkillValueLimit"); this.lblTeamKillValueDecreasePerSecond.Text = this.Language.GetLocalized("uscServerSettingsPanel.lblTeamKillValueDecreasePerSecond"); this.lnkTeamKillValueDecreasePerSecond.Text = this.Language.GetLocalized("uscServerSettingsPanel.lnkTeamKillValueDecreasePerSecond"); this.lblSettingsTeamKillValueIncrease.Text = this.Language.GetLocalized("uscServerSettingsPanel.lblSettingsTeamKillValueIncrease"); this.lnkSettingsTeamKillValueIncrease.Text = this.Language.GetLocalized("uscServerSettingsPanel.lnkSettingsTeamKillValueIncrease"); this.DisplayName = this.Language.GetLocalized("uscServerSettingsPanel.lblSettingsTeamKill"); this.UpdateTeamkillExplanations(); }
public override void SetLocalization(CLocalization clocLanguage) { this.m_clocLanguage = clocLanguage; if (this.m_clocLanguage != null) { //this.m_prcConnection.SetLocalization(this.m_clocLanguage); this.uscLogin.SetLocalization(this.m_clocLanguage); this.tabPlayerList.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.tabPlayerList", null); this.uscPlayers.SetLocalization(this.m_clocLanguage); this.tabChat.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.tabChat", null); this.uscChat.SetLocalization(this.m_clocLanguage); this.uscMap.SetLocalization(this.m_clocLanguage); this.tabMapView.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.tabMapView"); this.tabEvents.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.tabEvents", null); this.uscEvents.SetLocalization(this.m_clocLanguage); this.tabLists.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.tabLists", null); this.uscLists.SetLocalization(this.m_clocLanguage); this.tabServerSettings.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.tabServerSettings", null); this.uscSettings.SetLocalization(this.m_clocLanguage); this.tabPlugins.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.tabPlugins", null); this.uscPlugins.SetLocalization(this.m_clocLanguage); this.tabAccounts.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.tabAccounts", null); this.uscAccounts.SetLocalization(this.m_clocLanguage); this.tabConsole.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.tabConsole", null); this.uscServerConsole.SetLocalization(this.m_clocLanguage); this.m_tabParentLayerControl.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.tabParentLayerControl", null); this.m_uscParentLayerControl.SetLocalization(this.m_clocLanguage); this.toolTipMapControls.SetToolTip(this.btnNextRound, this.m_clocLanguage.GetLocalized("uscServerConnection.btnNextRound.ToolTip")); this.toolTipMapControls.SetToolTip(this.btnRestartRound, this.m_clocLanguage.GetLocalized("uscServerConnection.btnRestartRound.ToolTip")); this.ma_timeDescriptionsShort[13] = this.m_clocLanguage.GetLocalized("global.Seconds.Short", null); this.ma_timeDescriptionsShort[12] = this.m_clocLanguage.GetLocalized("global.Seconds.Short", null); this.ma_timeDescriptionsShort[11] = this.m_clocLanguage.GetLocalized("global.Minutes.Short", null) + " "; this.ma_timeDescriptionsShort[10] = this.m_clocLanguage.GetLocalized("global.Minutes.Short", null) + " "; this.ma_timeDescriptionsShort[9] = this.m_clocLanguage.GetLocalized("global.Hours.Short", null) + " "; this.ma_timeDescriptionsShort[8] = this.m_clocLanguage.GetLocalized("global.Hours.Short", null) + " "; this.ma_timeDescriptionsShort[7] = this.m_clocLanguage.GetLocalized("global.Days.Short", null) + " "; this.ma_timeDescriptionsShort[6] = this.m_clocLanguage.GetLocalized("global.Days.Short", null) + " "; this.ma_timeDescriptionsShort[5] = this.m_clocLanguage.GetLocalized("global.Weeks.Short", null) + " "; this.ma_timeDescriptionsShort[4] = this.m_clocLanguage.GetLocalized("global.Weeks.Short", null) + " "; this.ma_timeDescriptionsShort[3] = this.m_clocLanguage.GetLocalized("global.Months.Short", null) + " "; this.ma_timeDescriptionsShort[2] = this.m_clocLanguage.GetLocalized("global.Months.Short", null) + " "; this.ma_timeDescriptionsShort[1] = this.m_clocLanguage.GetLocalized("global.Years.Short", null) + " "; this.ma_timeDescriptionsShort[0] = this.m_clocLanguage.GetLocalized("global.Years.Short", null) + " "; if (this.m_prcConnection.CurrentServerInfo != null) { this.SetServerInfoLabels(this.m_prcConnection.CurrentServerInfo); //this.lblPlayerCount.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.lblPlayerCount", new string[] { this.m_prcConnection.CurrentServerInfo.PlayerCount.ToString(), this.m_prcConnection.CurrentServerInfo.MaxPlayerCount.ToString() }); //this.lblCurrentGameMode.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.lblCurrentGameMode", new string[] { }); //this.lblCurrentMapName.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.lblCurrentMapName", new string[] { this.m_prcConnection.GetFriendlyMapname(this.m_prcConnection.CurrentServerInfo.Map) }); //this.lblCurrentMapName.Text = String.Format("{0} - {1}", this.m_prcConnection.GetFriendlyGamemode(this.m_prcConnection.CurrentServerInfo.GameMode), this.m_prcConnection.GetFriendlyMapname(this.m_prcConnection.CurrentServerInfo.Map)); //this.lblCurrentRound.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.lblCurrentRound", this.m_prcConnection.CurrentServerInfo.CurrentRound.ToString(), this.m_prcConnection.CurrentServerInfo.TotalRounds.ToString()); } else { //this.lblPlayerCount.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.lblPlayerCount", new string[] { "", "" }); //this.lblCurrentGameMode.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.lblCurrentGameMode", new string[] { "" }); //this.lblCurrentMapName.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.lblCurrentMapName", new string[] { "" }); this.lblCurrentMapName.Text = String.Empty; this.lblCurrentRound.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.lblCurrentRound", "", ""); } if (this.m_prcConnection.Game != null) { this.SetVersionInfoLabels(this.m_prcConnection.Game); } } }
public void SetLocalization(CLocalization clocLanguage) { this.Language = clocLanguage; this.colSlotID1.Text = this.colSlotID2.Text = this.colSlotID3.Text = this.colSlotID4.Text = this.Language.GetLocalized("uscPlayerListPanel.lsvPlayers.colSlotID", null); this.colTags1.Text = this.colTags2.Text = this.colTags3.Text = this.colTags4.Text = this.Language.GetLocalized("uscPlayerListPanel.lsvPlayers.colTags", null); this.colPlayerName1.Text = this.colPlayerName2.Text = this.colPlayerName3.Text = this.colPlayerName4.Text = this.Language.GetLocalized("uscPlayerListPanel.lsvPlayers.colPlayerName", null); this.colSquad1.Text = this.colSquad2.Text = this.colSquad3.Text = this.colSquad4.Text = this.Language.GetLocalized("uscPlayerListPanel.lsvPlayers.colSquad", null); this.colKit1.Text = this.colKit2.Text = this.colKit3.Text = this.colKit4.Text = this.Language.GetLocalized("uscPlayerListPanel.lsvPlayers.colKit", null); this.colKills1.Text = this.colKills2.Text = this.colKills3.Text = this.colKills4.Text = this.Language.GetLocalized("uscPlayerListPanel.lsvPlayers.colKills", null); this.colDeaths1.Text = this.colDeaths2.Text = this.colDeaths3.Text = this.colDeaths4.Text = this.Language.GetLocalized("uscPlayerListPanel.lsvPlayers.colDeaths", null); this.colKdr1.Text = this.colKdr2.Text = this.colKdr3.Text = this.colKdr4.Text = this.Language.GetLocalized("uscPlayerListPanel.lsvPlayers.colKdr", null); this.colScore1.Text = this.colScore2.Text = this.colScore3.Text = this.colScore4.Text = this.Language.GetLocalized("uscPlayerListPanel.lsvPlayers.colScore", null); this.colPing1.Text = this.colPing2.Text = this.colPing3.Text = this.colPing4.Text = this.Language.GetLocalized("uscPlayerListPanel.lsvPlayers.colPing", null); this.colRank1.Text = this.colRank2.Text = this.colRank3.Text = this.colRank4.Text = this.Language.GetDefaultLocalized("Rank", "uscPlayerListPanel.lsvPlayers.colRank", null); this.colTime1.Text = this.colTime2.Text = this.colTime3.Text = this.colTime4.Text = this.Language.GetDefaultLocalized("PlayTime", "uscPlayerListPanel.lsvPlayers.colTime", null); this.colType1.Text = this.colType2.Text = this.colType3.Text = this.colType4.Text = this.Language.GetDefaultLocalized("Type", "uscPlayerListPanel.lsvPlayers.colType", null); this.btnPlayerListSelectedCheese.Text = this.Language.GetLocalized("uscPlayerListPanel.btnPlayerListSelectedCheese", null); this.chkPlayerListShowTeams.Text = this.Language.GetLocalized("uscPlayerListPanel.chkPlayerListShowTeams", null); this.tabCourtMartialBFBC.Text = this.Language.GetLocalized("uscPlayerListPanel.tabCourtMartialBFBC", null); this.tabCourtMartialPunkbuster.Text = this.Language.GetLocalized("uscPlayerListPanel.tabCourtMartialPunkbuster", null); this.lblInventory.Text = this.Language.GetLocalized("uscPlayerListPanel.lblInventory") + @":"; // Player Context Menu this.textChatModerationToolStripMenuItem.Text = this.Language.GetLocalized("uscPlayerListPanel.ctxPlayerOptions.textChatModerationToolStripMenuItem"); this.reservedSlotToolStripMenuItem.Text = this.Language.GetLocalized("uscPlayerListPanel.ctxPlayerOptions.reservedSlotToolStripMenuItem"); this.spectatorListToolStripMenuItem.Text = this.Language.GetDefaultLocalized("Spectator list", "uscPlayerListPanel.ctxPlayerOptions.spectatorListToolStripMenuItem"); this.statsLookupToolStripMenuItem.Text = this.Language.GetDefaultLocalized("Stats Lookup", "uscPlayerListPanel.ctxPlayerOptions.statsLookupToolStripMenuItem"); this.punkBusterScreenshotToolStripMenuItem.Text = this.Language.GetDefaultLocalized("PunkBuster Screenshot", "uscPlayerListPanel.ctxPlayerOptions.punkBusterScreenshotToolStripMenuItem"); // cboEndRound this.cboEndRound.Items.Clear(); this.cboEndRound.Items.AddRange(new object[] { this.Language.GetDefaultLocalized("Select winning team to end round:", "uscPlayerListPanel.ctxPlayerOptions.EndRound.Label"), this.Language.GetDefaultLocalized("Team 1", "uscPlayerListPanel.ctxPlayerOptions.EndRound.Team1"), this.Language.GetDefaultLocalized("Team 2", "uscPlayerListPanel.ctxPlayerOptions.EndRound.Team2"), this.Language.GetDefaultLocalized("Team 3", "uscPlayerListPanel.ctxPlayerOptions.EndRound.Team3"), this.Language.GetDefaultLocalized("Team 4", "uscPlayerListPanel.ctxPlayerOptions.EndRound.Team4") }); this.cboEndRound.SelectedIndex = 0; Graphics cboEndRoundGrafphics = cboEndRound.CreateGraphics(); this.cboEndRound.Width = 18 + (int)cboEndRoundGrafphics.MeasureString(this.cboEndRound.Text, this.cboEndRound.Font).Width; this.kbpBfbcPunishPanel.SetLocalization(this.Language); this.kbpPunkbusterPunishPanel.SetLocalization(this.Language); }
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); }
// Minimizing to tray, then maximizing from tray will fire the Load event again. //private bool m_blFormLoaded = false; private void uscServerConnection_Load(object sender, EventArgs e) { if (Program.ProconApplication.OptionsSettings.ShowRoundTimerConstantly) { this.lblRoundTime.Visible = true; } else { this.lblRoundTime.Visible = false; } if (this.m_prcConnection != null) { this.m_clocLanguage = this.m_prcConnection.Language; //this.lblVersion.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.lblVersion", new string[] { this.m_prcConnection.VersionNumber }); if (this.m_prcConnection.PluginsManager != null) { this.uscPlugins.SetLoadedPlugins(this.m_prcConnection.PluginsManager.Plugins.LoadedClassNames); this.uscPlugins.SetEnabledPlugins(this.m_prcConnection.PluginsManager.Plugins.EnabledClassNames); } if (this.m_prcConnection.PluginConsole != null) { foreach (LogEntry leEntry in new List<LogEntry>(this.m_prcConnection.PluginConsole.LogEntries)) { this.PluginConsole_WriteConsole(leEntry.Logged, leEntry.Text); } } if (this.m_prcConnection.State != ConnectionState.Connected) { this.uscLogin.Dock = DockStyle.Fill; this.uscLogin.Show(); } else { this.uscLogin.Hide(); } if (this.m_prcConnection.IsPRoConConnection == true) { this.m_prcConnection_ProconPrivileges(this.m_prcConnection, this.m_prcConnection.Privileges); } } }
public void SetLocalization(CLocalization clocLanguage) { this.m_clocLanguage = clocLanguage; // private string[] m_astrTimeDescriptionsLong = new string[] { " year ", " years ", " month ", " months ", " week ", " weeks ", " day ", " days ", " hour ", " hours ", " minute ", " minutes ", " second", " seconds" }; this.ma_strTimeDescriptionsLong[13] = " " + this.m_clocLanguage.GetLocalized("global.Seconds.Plural", null).ToLower(); this.ma_strTimeDescriptionsLong[12] = " " + this.m_clocLanguage.GetLocalized("global.Seconds.Singular", null).ToLower(); this.ma_strTimeDescriptionsLong[11] = " " + this.m_clocLanguage.GetLocalized("global.Minutes.Plural", null).ToLower() + " "; this.ma_strTimeDescriptionsLong[10] = " " + this.m_clocLanguage.GetLocalized("global.Minutes.Singular", null).ToLower() + " "; this.ma_strTimeDescriptionsLong[9] = " " + this.m_clocLanguage.GetLocalized("global.Hours.Plural", null).ToLower() + " "; this.ma_strTimeDescriptionsLong[8] = " " + this.m_clocLanguage.GetLocalized("global.Hours.Singular", null).ToLower() + " "; this.ma_strTimeDescriptionsLong[7] = " " + this.m_clocLanguage.GetLocalized("global.Days.Plural", null).ToLower() + " "; this.ma_strTimeDescriptionsLong[6] = " " + this.m_clocLanguage.GetLocalized("global.Days.Singular", null).ToLower() + " "; this.ma_strTimeDescriptionsLong[5] = " " + this.m_clocLanguage.GetLocalized("global.Weeks.Plural", null).ToLower() + " "; this.ma_strTimeDescriptionsLong[4] = " " + this.m_clocLanguage.GetLocalized("global.Weeks.Singular", null).ToLower() + " "; this.ma_strTimeDescriptionsLong[3] = " " + this.m_clocLanguage.GetLocalized("global.Months.Plural", null).ToLower() + " "; this.ma_strTimeDescriptionsLong[2] = " " + this.m_clocLanguage.GetLocalized("global.Months.Singular", null).ToLower() + " "; this.ma_strTimeDescriptionsLong[1] = " " + this.m_clocLanguage.GetLocalized("global.Years.Plural", null).ToLower() + " "; this.ma_strTimeDescriptionsLong[0] = " " + this.m_clocLanguage.GetLocalized("global.Years.Singular", null).ToLower() + " "; this.cboTimeMultiplier.Items[0] = this.m_clocLanguage.GetLocalized("global.Minutes.Plural", null); this.cboTimeMultiplier.Items[1] = this.m_clocLanguage.GetLocalized("global.Hours.Plural", null); this.cboTimeMultiplier.Items[2] = this.m_clocLanguage.GetLocalized("global.Days.Plural", null); this.cboTimeMultiplier.Items[3] = this.m_clocLanguage.GetLocalized("global.Weeks.Plural", null); this.cboTimeMultiplier.Items[4] = this.m_clocLanguage.GetLocalized("global.Months.Plural", null); // private string[] m_astrTimeDescriptionsShort = new string[] { "y ", "y ", "M ", "M ", "w ", "w ", "d ", "d ", "h ", "h ", "m ", "m ", "s ", "s " }; this.ma_strTimeDescriptionsShort[13] = this.m_clocLanguage.GetLocalized("global.Seconds.Short", null); this.ma_strTimeDescriptionsShort[12] = this.m_clocLanguage.GetLocalized("global.Seconds.Short", null); this.ma_strTimeDescriptionsShort[11] = this.m_clocLanguage.GetLocalized("global.Minutes.Short", null) + " "; this.ma_strTimeDescriptionsShort[10] = this.m_clocLanguage.GetLocalized("global.Minutes.Short", null) + " "; this.ma_strTimeDescriptionsShort[9] = this.m_clocLanguage.GetLocalized("global.Hours.Short", null) + " "; this.ma_strTimeDescriptionsShort[8] = this.m_clocLanguage.GetLocalized("global.Hours.Short", null) + " "; this.ma_strTimeDescriptionsShort[7] = this.m_clocLanguage.GetLocalized("global.Days.Short", null) + " "; this.ma_strTimeDescriptionsShort[6] = this.m_clocLanguage.GetLocalized("global.Days.Short", null) + " "; this.ma_strTimeDescriptionsShort[5] = this.m_clocLanguage.GetLocalized("global.Weeks.Short", null) + " "; this.ma_strTimeDescriptionsShort[4] = this.m_clocLanguage.GetLocalized("global.Weeks.Short", null) + " "; this.ma_strTimeDescriptionsShort[3] = this.m_clocLanguage.GetLocalized("global.Months.Short", null) + " "; this.ma_strTimeDescriptionsShort[2] = this.m_clocLanguage.GetLocalized("global.Months.Short", null) + " "; this.ma_strTimeDescriptionsShort[1] = this.m_clocLanguage.GetLocalized("global.Years.Short", null) + " "; this.ma_strTimeDescriptionsShort[0] = this.m_clocLanguage.GetLocalized("global.Years.Short", null) + " "; this.rdoKill.Text = this.m_clocLanguage.GetLocalized("uscPlayerPunishPanel.rdoKill", null); this.rdoKick.Text = this.m_clocLanguage.GetLocalized("uscPlayerPunishPanel.rdoKick", null); this.rdoPermanentlyBan.Text = this.m_clocLanguage.GetLocalized("uscPlayerPunishPanel.rdoPermanentlyBan", null); this.rdoTemporaryBan.Text = this.m_clocLanguage.GetLocalized("uscPlayerPunishPanel.rdoTemporaryBan", null); this.lblTime.Text = this.m_clocLanguage.GetLocalized("uscPlayerPunishPanel.lblTime", null); this.lblReason.Text = this.m_clocLanguage.GetLocalized("uscPlayerPunishPanel.lblReason", null); this.btnPunish.Text = this.m_clocLanguage.GetLocalized("uscPlayerPunishPanel.btnPunish", null); this.rdoPunishOnName.Text = this.m_clocLanguage.GetLocalized("uscPlayerPunishPanel.rdoPunishOnName", null); this.rdoPunishOnIP.Text = this.m_clocLanguage.GetLocalized("uscPlayerPunishPanel.rdoPunishOnIP", null); this.rdoPunishOnGUID.Text = this.m_clocLanguage.GetLocalized("uscPlayerPunishPanel.rdoPunishOnGUID", null); this.UpdateConfirmationLabel(); }
public virtual void SetLocalization(CLocalization clocLanguage) { }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); string startPagePath = Path.Combine(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Media"), "UI"); this._isDocumentReady = false; if (File.Exists(Path.Combine(startPagePath, "startPage.temp")) == true) { this._startPageTemplates = new CLocalization(Path.Combine(startPagePath, "startPage.temp"), "startPage.temp"); } this.webBrowser1.AllowNavigation = false; this.webBrowser1.AllowWebBrowserDrop = false; this.webBrowser1.IsWebBrowserContextMenuEnabled = false; this.webBrowser1.ObjectForScripting = this; this.webBrowser1.ScriptErrorsSuppressed = true; if (this.webBrowser1.Document == null && File.Exists(Path.Combine(startPagePath, "startpage.html")) == true) { this.webBrowser1.Navigate(Path.Combine(startPagePath, "startpage.html")); } }
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; }
public void SetLocalization(CLocalization clocLanguage) { if ((this._language = clocLanguage) != null) { this.lblLayerServerSetupTitle.Text = this._language.GetLocalized("uscAccountsPanel.lblLayerServerSetupTitle", null); this.lnkStartStopLayer.Text = this._language.GetLocalized("uscAccountsPanel.lnkStartStopLayer.Start", null); this.lblLayerServerStatus.Text = this._language.GetLocalized("uscAccountsPanel.lblLayerServerStatus.Offline", null); this.lblLayerAssignAccountPrivilegesTitle.Text = this._language.GetLocalized("uscAccountsPanel.lblLayerAssignAccountPrivilegesTitle", null); this.colAccounts.Text = this._language.GetLocalized("uscAccountsPanel.lstLayerAccounts.colAccounts", null); this.colPrivileges.Text = this._language.GetLocalized("uscAccountsPanel.lstLayerAccounts.colPrivileges", null); this.colRConAccess.Text = this._language.GetLocalized("uscAccountsPanel.lstLayerAccounts.colRConAccess", null); this.lnkManageAccounts.Text = this._language.GetLocalized("uscAccountsPanel.lnkManageAccounts", null); this.lblLayerStartTitle.Text = this._language.GetLocalized("uscAccountsPanel.lblLayerStartTitle", null); this.lblLayerStartPort.Text = this._language.GetLocalized("uscAccountsPanel.lblLayerStartPort", null); this.lblLayerBindingIP.Text = this._language.GetLocalized("uscAccountsPanel.lblLayerBindingIP", null); this.lblBindingExplanation.Text = this._language.GetLocalized("uscAccountsPanel.lblBindingExplanation", null); this.lblLayerName.Text = this._language.GetLocalized("uscAccountsPanel.lblLayerName", null); this.btnInsertName.Text = this._language.GetLocalized("uscAccountsPanel.btnInsertName", null); this.lblExampleLayerName.Text = this._language.GetLocalized("uscAccountsPanel.lblExampleLayerName", new[] { this.txtLayerName.Text.Replace("%servername%", this._serverName) }); this.btnLayerStart.Text = this._language.GetLocalized("uscAccountsPanel.btnLayerStart", null); this.btnCancelLayerStart.Text = this._language.GetLocalized("uscAccountsPanel.btnCancelLayerStart", null); this.uscPrivileges.SetLocalization(this._language); this.RefreshLayerPrivilegesPanel(); } }
public void SetLocalization(CLocalization clocLanguage) { this.m_clocLanguage = clocLanguage; this.tabConsole.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.tabConsole", null); this.btnConsoleSend.Text = this.m_clocLanguage.GetLocalized("uscConsolePanel.btnConsoleSend", null); this.chkEnableOutput.Text = this.m_clocLanguage.GetLocalized("uscConsolePanel.chkEnableOutput", null); this.chkEvents.Text = this.m_clocLanguage.GetLocalized("uscConsolePanel.chkEvents", null); this.chkDebug.Text = this.m_clocLanguage.GetLocalized("uscConsolePanel.chkDebug", null); this.btnPunkbusterSend.Text = this.m_clocLanguage.GetLocalized("uscConsolePanel.btnConsoleSend", null); this.chkEnablePunkbusterOutput.Text = this.m_clocLanguage.GetLocalized("uscConsolePanel.chkEnableOutput", null); this.chkConEnableScrolling.Text = this.m_clocLanguage.GetLocalized("uscChatPanel.chkDisplayScrolling", null); this.chkPBEnableScrolling.Text = this.m_clocLanguage.GetLocalized("uscChatPanel.chkDisplayScrolling", null); }
public override void SetLocalization(CLocalization clocLanguage) { this.m_clocLanguage = clocLanguage; this.btnChatSend.Text = this.m_clocLanguage.GetLocalized("uscChatPanel.btnChatSend", null); this.m_strAllPlayers = this.m_clocLanguage.GetLocalized("uscChatPanel.cboPlayerList.AllPlayers", null); this.lblAudience.Text = this.m_clocLanguage.GetLocalized("uscChatPanel.lblAudience", null); this.lblDisplayFor.Text = this.m_clocLanguage.GetLocalized("uscChatPanel.lblDisplayFor", null); this.lblDisplay.Text = this.m_clocLanguage.GetLocalized("uscChatPanel.lblDisplay", null); this.cboDisplayList.Items[0] = this.m_clocLanguage.GetLocalized("uscChatPanel.cboDisplayList.Say", null); if (this.cboDisplayList.Items.Count > 1) { this.cboDisplayList.Items[1] = this.m_clocLanguage.GetLocalized("uscChatPanel.cboDisplayList.Yell", null); } this.chkDisplayOnJoinLeaveEvents.Text = this.m_clocLanguage.GetLocalized("uscChatPanel.chkDisplayOnJoinLeaveEvents", null); this.chkDisplayOnKilledEvents.Text = this.m_clocLanguage.GetLocalized("uscChatPanel.chkDisplayOnKilledEvents", null); this.chkDisplayScrollingEvents.Text = this.m_clocLanguage.GetLocalized("uscChatPanel.chkDisplayScrolling", null); this.chkDisplayComRoseMsg.Text = this.m_clocLanguage.GetLocalized("uscChatPanel.chkDisplayComRoseMsg", null); this.chkDisplayPlayerDisconnected.Text = this.m_clocLanguage.GetLocalized("uscChatPanel.chkDisplayPlayerDisconnected", null); this.btnclearchat.Text = this.m_clocLanguage.GetLocalized("uscChatPanel.btnclearchat", null); this.cboDisplayChatTime.Refresh(); }
public void SetLocalization(CLocalization clocLanguage) { this.m_clocLanguage = clocLanguage; this.lblConnectionUsername.Text = this.m_clocLanguage.GetLocalized("uscLoginPanel.lblConnectionUsername", null) + ":"; this.lblConnectionPassword.Text = this.m_clocLanguage.GetLocalized("uscLoginPanel.lblConnectionPassword", null) + ":"; this.chkAutomaticallyConnect.Text = this.m_clocLanguage.GetLocalized("uscLoginPanel.chkAutomaticallyConnect", null); this.lnkConnectionsConnect.Text = this.m_clocLanguage.GetLocalized("uscLoginPanel.lnkConnectionsConnect", null); }
public void SetLocalization(CLocalization clocLanguage) { if ((this.m_clocLanguage = clocLanguage) != null) { this.tabPlugins.Text = this.tabPlugins.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.tabPlugins", null); this.uscPlugins.SetLocalization(this.m_clocLanguage); //this.tbpPRoConLayer.Text = this.m_clocLanguage.GetLocalized("uscAccountsPanel.Title", null); this.tabAccounts.Text = this.tabAccounts.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.tabAccounts", null); this.lblLayerServerSetupTitle.Text = this.m_clocLanguage.GetLocalized("uscAccountsPanel.lblLayerServerSetupTitle", null); this.lnkStartStopLayer.Text = this.m_clocLanguage.GetLocalized("uscAccountsPanel.lnkStartStopLayer.Start", null); //this.lnkStartStopLayer.LinkArea = new LinkArea(0, this.lnkStartStopLayer.Text.Length); this.lblLayerServerStatus.Text = this.m_clocLanguage.GetLocalized("uscAccountsPanel.lblLayerServerStatus.Offline", null); this.lnkLayerForwardedTest.Text = this.m_clocLanguage.GetLocalized("uscAccountsPanel.lnkLayerForwardedTest", null); //this.lnkLayerForwardedTest.LinkArea = new LinkArea(0, this.lnkLayerForwardedTest.Text.Length); this.lblLayerForwardedTestStatus.Text = this.m_clocLanguage.GetLocalized("uscAccountsPanel.lblLayerForwardedTestStatus.Unknown", null); this.lnkWhatIsPRoConLayer.Text = this.m_clocLanguage.GetLocalized("uscAccountsPanel.lnkWhatIsPRoConLayer", null); //this.lnkWhatIsPRoConLayer.LinkArea = new LinkArea(0, this.lnkWhatIsPRoConLayer.Text.Length); this.lblLayerAssignAccountPrivilegesTitle.Text = this.m_clocLanguage.GetLocalized("uscAccountsPanel.lblLayerAssignAccountPrivilegesTitle", null); this.colAccounts.Text = this.m_clocLanguage.GetLocalized("uscAccountsPanel.lstLayerAccounts.colAccounts", null); this.colPrivileges.Text = this.m_clocLanguage.GetLocalized("uscAccountsPanel.lstLayerAccounts.colPrivileges", null); this.colRConAccess.Text = this.m_clocLanguage.GetLocalized("uscAccountsPanel.lstLayerAccounts.colRConAccess", null); this.lnkEditAccount.Text = this.m_clocLanguage.GetLocalized("uscParentLayerControl.tabAccounts.lnkEditAccount", null); this.lnkDeleteAccount.Text = this.m_clocLanguage.GetLocalized("uscParentLayerControl.tabAccounts.lnkDeleteAccount", null); this.lblCreateNewAccount.Text = this.m_clocLanguage.GetLocalized("uscParentLayerControl.tabAccounts.lblCreateNewAccount", null); this.lblUsername.Text = this.m_clocLanguage.GetLocalized("uscParentLayerControl.tabAccounts.lblUsername", null); this.lblPassword.Text = this.m_clocLanguage.GetLocalized("uscParentLayerControl.tabAccounts.lblPassword", null); this.lnkCreateAccount.Text = this.m_clocLanguage.GetLocalized("uscParentLayerControl.tabAccounts.lnkCreateAccount", null); this.lblUserNameExistsError.Text = this.m_clocLanguage.GetLocalized("uscParentLayerControl.tabAccounts.lblUserNameExistsError", null); this.lnkChangeAccountPassword.Text = this.m_clocLanguage.GetLocalized("uscParentLayerControl.tabAccounts.lnkChangeAccountPassword.Blank", null); this.uscPrivileges.SetLocalization(this.m_clocLanguage); this.RefreshLayerPrivilegesPanel(); } }
public override void SetLocalization(CLocalization clocLanguage) { base.SetLocalization(clocLanguage); this._language = clocLanguage; if (this._isDocumentReady == true && this.webBrowser1 != null && this.webBrowser1.Document != null) { // My Connections this.webBrowser1.Document.InvokeScript("fnSetLocalization", new object[] { "pStartPage-lblMyConnections", clocLanguage.GetDefaultLocalized("My Connections", "pStartPage-lblMyConnections") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new object[] { "pStartPage-lblNoConnections", clocLanguage.GetDefaultLocalized("You do not have any connections. Get started by creating a connection to your game server or layer", "pStartPage-lblNoConnections") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new object[] { "pStartPage-lblCreateConnection", clocLanguage.GetDefaultLocalized("Create Connection", "pStartPage-lblCreateConnection") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new object[] { "pStartPage-lblCreateConnectionLegend", clocLanguage.GetDefaultLocalized("Create Connection", "pStartPage-lblCreateConnectionLegend") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new object[] { "pStartPage-lblConnectionsHostnameIp", clocLanguage.GetDefaultLocalized("Hostname/IP", "pStartPage-lblConnectionsHostnameIp") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new object[] { "pStartPage-lblConnectionsPort", clocLanguage.GetDefaultLocalized("Port", "pStartPage-lblConnectionsPort") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new object[] { "pStartPage-lblConnectionsUsername", clocLanguage.GetDefaultLocalized("Username", "pStartPage-lblConnectionsUsername") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new object[] { "pStartPage-lblConnectionsUsernameExplanation", clocLanguage.GetDefaultLocalized("You only require a username to login to a PRoCon layer", "pStartPage-lblConnectionsUsernameExplanation") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new object[] { "pStartPage-lblConnectionsPassword", clocLanguage.GetDefaultLocalized("Password", "pStartPage-lblConnectionsPassword") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new object[] { "pStartPage-lblCancelCreateConnection", clocLanguage.GetDefaultLocalized("Cancel", "pStartPage-lblCancelCreateConnection") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new object[] { "pStartPage-lblConnectCreateConnection", clocLanguage.GetDefaultLocalized("Connect", "pStartPage-lblConnectCreateConnection") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new object[] { "pStartPage-tabPhogueNetNewsFeed", clocLanguage.GetDefaultLocalized("News Feed", "pStartPage-tabPhogueNetNewsFeed") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new object[] { "pStartPage-tabPackages", clocLanguage.GetDefaultLocalized("Packages", "pStartPage-tabPackages") }); /* this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-lblDonate", clocLanguage.GetDefaultLocalized("Donate", "pStartPage-lblDonate") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-lblDonationAmount", clocLanguage.GetDefaultLocalized("Donation Amount", "pStartPage-lblDonationAmount") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-lblDonationAmount-Currency", clocLanguage.GetDefaultLocalized("Currency: USD", "pStartPage-lblDonationAmount-Currency") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-lblRecognize", clocLanguage.GetDefaultLocalized("I want my kudos!", "pStartPage-lblRecognize") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-chkRecognize-lblShowOnWall", clocLanguage.GetDefaultLocalized("Show on Wall", "pStartPage-chkRecognize-lblShowOnWall") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-chkRecognize-optDoNotShow", clocLanguage.GetDefaultLocalized("Do not show any information", "pStartPage-chkRecognize-optDoNotShow") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-chkRecognize-optAmountDetailsComments", clocLanguage.GetDefaultLocalized("Amount, Details & Comments", "pStartPage-chkRecognize-optAmountDetailsComments") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-chkRecognize-optDetailsCommentsOnly", clocLanguage.GetDefaultLocalized("User Details & Comments Only", "pStartPage-chkRecognize-optDetailsCommentsOnly") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-chkRecognize-lblName", clocLanguage.GetDefaultLocalized("Name", "pStartPage-chkRecognize-lblName") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-chkRecognize-lblEmail", clocLanguage.GetDefaultLocalized("Email", "pStartPage-chkRecognize-lblEmail") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-chkRecognize-lblWebsite", clocLanguage.GetDefaultLocalized("Website", "pStartPage-chkRecognize-lblWebsite") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-chkRecognize-lblComments", clocLanguage.GetDefaultLocalized("Comments", "pStartPage-chkRecognize-lblComments") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-chkRecognize-lblRecognizeTime", clocLanguage.GetDefaultLocalized("Your message may take up to an hour to appear on the wall.", "pStartPage-chkRecognize-lblRecognizeTime") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-lblMonthlySummary", clocLanguage.GetDefaultLocalized("Monthly Summary", "pStartPage-lblMonthlySummary") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-lblDonationWall", clocLanguage.GetDefaultLocalized("Donation Wall", "pStartPage-lblDonationWall") }); */ this.webBrowser1.Document.InvokeScript("fnSetVariableLocalization", new object[] { "m_pStartPage_lblDeleteConnection", clocLanguage.GetDefaultLocalized("Are you sure you want <br/>to delete this connection?", "m_pStartPage_lblDeleteConnection") }); ArrayList tableHeaders = new ArrayList { "", clocLanguage.GetDefaultLocalized("UID", "pStartPage-tblPackages-thUid"), clocLanguage.GetDefaultLocalized("Type", "pStartPage-tblPackages-thType"), clocLanguage.GetDefaultLocalized("Name", "pStartPage-tblPackages-thName"), clocLanguage.GetDefaultLocalized("Version", "pStartPage-tblPackages-thVersion"), clocLanguage.GetDefaultLocalized("Last Update", "pStartPage-tblPackages-thLastUpdate"), clocLanguage.GetDefaultLocalized("Status", "pStartPage-tblPackages-thStatus"), clocLanguage.GetDefaultLocalized("Downloads", "pStartPage-tblPackages-thDownloads"), "", clocLanguage.GetDefaultLocalized("Discuss/Feedback", "pStartPage-tblPackages-thDiscussFeedback"), clocLanguage.GetDefaultLocalized("Author", "pStartPage-tblPackages-thAuthor"), "", "", clocLanguage.GetDefaultLocalized("Description", "pStartPage-tblPackages-thDescription"), "", "", clocLanguage.GetDefaultLocalized("Layer Install Status", "pStartPage-tblPackages-thLayerInstallStatus"), clocLanguage.GetDefaultLocalized("Install Package", "pStartPage-tblPackages-thInstallPackage") }; this.webBrowser1.Document.InvokeScript("fnSetTableHeadersLocalization", new object[] { "pStartPage-tblPackages", JSON.JsonEncode(tableHeaders) }); } }
public void SetLocalization(CLocalization clocLanguage) { this.m_clocLanguage = clocLanguage; //this.tbpPlugins.Text = this.m_clocLanguage.GetLocalized("uscServerConnection.tbpPlugins.Title", null); this.lblLoadedPlugins.Text = this.m_clocLanguage.GetLocalized("uscPluginPanel.lblLoadedPlugins", null); this.lnkReloadPlugins.Text = this.m_clocLanguage.GetLocalized("uscPluginPanel.lnkReloadPlugins", null); //this.lnkReloadPlugins.LinkArea = new LinkArea(0, this.lnkReloadPlugins.Text.Length); this.lnkMorePlugins.Text = this.m_clocLanguage.GetLocalized("uscPluginPanel.lnkMorePlugins", null); this.tabPluginDetails.Text = this.m_clocLanguage.GetLocalized("uscPluginPanel.tabPluginDetails", null); //this.lblPluginName.Text = this.m_clocLanguage.GetLocalized("uscPluginPanel.tabPluginDetails.lblPluginName", null); //this.lblPluginAuthor.Text = this.m_clocLanguage.GetLocalized("uscPluginPanel.tabPluginDetails.lblPluginAuthor", null); //this.lblPluginDescription.Text = this.m_clocLanguage.GetLocalized("uscPluginPanel.tabPluginDetails.lblPluginDescription", null); //this.lblPluginVersion.Text = this.m_clocLanguage.GetLocalized("uscPluginPanel.tabPluginDetails.lblPluginVersion", null); //this.lblPluginWebsite.Text = this.m_clocLanguage.GetLocalized("uscPluginPanel.tabPluginDetails.lblPluginWebsite", null); this.tabPluginSettings.Text = this.m_clocLanguage.GetLocalized("uscPluginPanel.tabPluginSettings", null); }