public override void SetLocalization(CLocalization clocLanguage) { base.SetLocalization(clocLanguage); this.m_language = clocLanguage; if (this.m_isDocumentReady == true) { // My Connections this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-lblMyConnections", clocLanguage.GetDefaultLocalized("My Connections", "pStartPage-lblMyConnections") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "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 string[] { "pStartPage-lblCreateConnection", clocLanguage.GetDefaultLocalized("Create Connection", "pStartPage-lblCreateConnection") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-lblCreateConnectionLegend", clocLanguage.GetDefaultLocalized("Create Connection", "pStartPage-lblCreateConnectionLegend") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-lblConnectionsHostnameIp", clocLanguage.GetDefaultLocalized("Hostname/IP", "pStartPage-lblConnectionsHostnameIp") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-lblConnectionsPort", clocLanguage.GetDefaultLocalized("Port", "pStartPage-lblConnectionsPort") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-lblConnectionsUsername", clocLanguage.GetDefaultLocalized("Username", "pStartPage-lblConnectionsUsername") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-lblConnectionsUsernameExplanation", clocLanguage.GetDefaultLocalized("You only require a username to login to a PRoCon layer", "pStartPage-lblConnectionsUsernameExplanation") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-lblConnectionsPassword", clocLanguage.GetDefaultLocalized("Password", "pStartPage-lblConnectionsPassword") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-lblCancelCreateConnection", clocLanguage.GetDefaultLocalized("Cancel", "pStartPage-lblCancelCreateConnection") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-lblConnectCreateConnection", clocLanguage.GetDefaultLocalized("Connect", "pStartPage-lblConnectCreateConnection") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "pStartPage-tabPhogueNetNewsFeed", clocLanguage.GetDefaultLocalized("News Feed", "pStartPage-tabPhogueNetNewsFeed") }); this.webBrowser1.Document.InvokeScript("fnSetLocalization", new string[] { "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 string[] { "m_pStartPage_lblDeleteConnection", clocLanguage.GetDefaultLocalized("Are you sure you want <br/>to delete this connection?", "m_pStartPage_lblDeleteConnection") }); ArrayList tableHeaders = new ArrayList(); tableHeaders.Add(""); tableHeaders.Add(clocLanguage.GetDefaultLocalized("UID", "pStartPage-tblPackages-thUid")); tableHeaders.Add(clocLanguage.GetDefaultLocalized("Type", "pStartPage-tblPackages-thType")); tableHeaders.Add(clocLanguage.GetDefaultLocalized("Name", "pStartPage-tblPackages-thName")); tableHeaders.Add(clocLanguage.GetDefaultLocalized("Version", "pStartPage-tblPackages-thVersion")); tableHeaders.Add(clocLanguage.GetDefaultLocalized("Last Update", "pStartPage-tblPackages-thLastUpdate")); tableHeaders.Add(clocLanguage.GetDefaultLocalized("Status", "pStartPage-tblPackages-thStatus")); tableHeaders.Add(clocLanguage.GetDefaultLocalized("Downloads", "pStartPage-tblPackages-thDownloads")); tableHeaders.Add(""); tableHeaders.Add(clocLanguage.GetDefaultLocalized("Discuss/Feedback", "pStartPage-tblPackages-thDiscussFeedback")); tableHeaders.Add(clocLanguage.GetDefaultLocalized("Author", "pStartPage-tblPackages-thAuthor")); tableHeaders.Add(""); tableHeaders.Add(""); tableHeaders.Add(clocLanguage.GetDefaultLocalized("Description", "pStartPage-tblPackages-thDescription")); tableHeaders.Add(""); tableHeaders.Add(""); tableHeaders.Add(clocLanguage.GetDefaultLocalized("Layer Install Status", "pStartPage-tblPackages-thLayerInstallStatus")); tableHeaders.Add(clocLanguage.GetDefaultLocalized("Install Package", "pStartPage-tblPackages-thInstallPackage")); this.webBrowser1.Document.InvokeScript("fnSetTableHeadersLocalization", new string[] { "pStartPage-tblPackages", JSON.JsonEncode(tableHeaders) }); } }
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"); // UsePluginOldStyleLoad this.lblAdvStartup.Text = clocLanguage.GetDefaultLocalized(this.lblAdvStartup.Text, "frmOptions.tabAdvanced.lblAdvSpecialSwitches.chkAdvStartup"); this.chkAdvUsePluginOldStyleLoad.Text = clocLanguage.GetDefaultLocalized(this.chkAdvUsePluginOldStyleLoad.Text, "frmOptions.tabAdvanced.lblAdvSpecialSwitches.chkAdvUsePluginOldStyleLoad"); this.lblAdvStartupChangeNotice.Text = clocLanguage.GetDefaultLocalized(this.lblAdvStartupChangeNotice.Text, "frmOptions.tabAdvanced.lblAdvSpecialSwitches.lblAdvStartupChangeNotice"); //this.m_strSetLanguageFileName = clocLanguage.FileName; }