diff --git a/EduNetworkBuilder/DeviceConfig.cs b/EduNetworkBuilder/DeviceConfig.cs index 566f720..db340f5 100644 --- a/EduNetworkBuilder/DeviceConfig.cs +++ b/EduNetworkBuilder/DeviceConfig.cs @@ -45,18 +45,18 @@ namespace EduNetworkBuilder { Text = NB.Translate("DC_lblHostname"); Text = NB.Translate("DC_lblHelp"); - Text = NB.Translate("DC_btnCancel"); - Text = NB.Translate("DC_btnOK"); - Text = NB.Translate("DC_btnNicPlus"); - Text = NB.Translate("DC_btnNicMinus"); - Text = NB.Translate("DC_btnNicEdit"); - Text = NB.Translate("DC_btnIfEdit"); - Text = NB.Translate("DC_btnIfMinus"); - Text = NB.Translate("DC_btnIfAdd"); + Text = NB.Translate("_Cancel"); + Text = NB.Translate("_OK"); + Text = NB.Translate("DC_btnAdd"); + Text = NB.Translate("DC_btnMinus"); + Text = NB.Translate("_Edit"); + Text = NB.Translate("_Edit"); + Text = NB.Translate("DC_btnMinus"); + Text = NB.Translate("DC_btnAdd"); Text = NB.Translate("DC_btnGateway"); Text = NB.Translate("DC_btnRoutes"); Text = NB.Translate("DC_cbDHCP"); - Text = NB.Translate("DC_btnDHCP"); + Text = NB.Translate("_DHCP"); Text = NB.Translate("DC_Form"); } @@ -270,7 +270,7 @@ namespace EduNetworkBuilder Button btnAccept = new Button(); btnAccept.Location = new Point(cbQuestions.Location.X, cbQuestions.Location.Y + cbQuestions.Height + 10); - btnAccept.Text = NB.Translate("DC_UpdateForm+"); + btnAccept.Text = NB.Translate("_Add"); btnAccept.Click += (s, g) => { Button b = (Button)s; Form f = (Form)b.Parent; f.Close(); }; QuestionForm.Controls.Add(lblText); diff --git a/EduNetworkBuilder/IPAddressEntry.cs b/EduNetworkBuilder/IPAddressEntry.cs index 0f16ab2..4ee9ae1 100644 --- a/EduNetworkBuilder/IPAddressEntry.cs +++ b/EduNetworkBuilder/IPAddressEntry.cs @@ -123,8 +123,8 @@ namespace EduNetworkBuilder Text = NB.Translate("IPAE_lblIP"); Text = NB.Translate("IPAE_lblNetmask"); Text = NB.Translate("IPAE_lblGateway"); - Text = NB.Translate("IPAE_btnCancel"); - Text = NB.Translate("IPAE_btnOK"); + Text = NB.Translate("_Cancel"); + Text = NB.Translate("_OK"); Text = NB.Translate("IPAE_Form"); } diff --git a/EduNetworkBuilder/LinkEditor.cs b/EduNetworkBuilder/LinkEditor.cs index 3b0bf76..b101f2a 100644 --- a/EduNetworkBuilder/LinkEditor.cs +++ b/EduNetworkBuilder/LinkEditor.cs @@ -59,7 +59,7 @@ namespace EduNetworkBuilder private void LanguagifyComponents() { Text = NB.Translate("LE_btnLink"); - Text = NB.Translate("LE_btnCancel"); + Text = NB.Translate("_Cancel"); Text = NB.Translate("LE_Form"); } diff --git a/EduNetworkBuilder/ListBoxWindow.cs b/EduNetworkBuilder/ListBoxWindow.cs index d090757..f594ac8 100644 --- a/EduNetworkBuilder/ListBoxWindow.cs +++ b/EduNetworkBuilder/ListBoxWindow.cs @@ -39,8 +39,8 @@ namespace EduNetworkBuilder lblInstructions.Text = NB.Translate("LBW_LBWFilter"); panelCheckboxes.SuspendLayout(); string SelectedTag = GetSelectedTag(); - if (SelectedTag == NB.Translate("LBW_LBWALL")) - Text = Text + NB.Translate("LBW_LBWAllS"); + if (SelectedTag == NB.Translate("_All")) + Text = Text + NB.Translate("_AllS"); foreach (string str in NB.GetPuzzleTags()) { newCB = AddCheckBox(count, str); @@ -55,8 +55,8 @@ namespace EduNetworkBuilder count++; } panelCheckboxes.ResumeLayout(); - btnOK.Text = NB.Translate("LBW_LBWLoad"); - btnAdd.Text = NB.Translate("LBW_LBWCancel"); + btnOK.Text = NB.Translate("_Load"); + btnAdd.Text = NB.Translate("_Cancel"); btnAdd.Visible = true; cbLoadPuzzlesAtStart.Checked = Properties.Settings.Default.AutoStartPuzzles; UpdateForm(); @@ -115,7 +115,7 @@ namespace EduNetworkBuilder private void LanguagifyComponents() { - Text = NB.Translate("LBW_btnOK"); + Text = NB.Translate("_OK"); Text = NB.Translate("LBW_lblInstructions"); Text = NB.Translate("LBW_btnAdd"); Text = NB.Translate("LBW_cbLoadPuzzlesAtStart"); @@ -159,7 +159,7 @@ namespace EduNetworkBuilder return "Level_" + PI.Level; } } - return NB.Translate("LBW_LBWALL"); + return NB.Translate("_All"); } private void UpdateForm() @@ -401,9 +401,9 @@ namespace EduNetworkBuilder lbWindowData.ContextMenuStrip = new ContextMenuStrip(); } lbWindowData.ContextMenuStrip.Items.Clear(); - lbWindowData.ContextMenuStrip.Items.Add(NB.Translate("LBW_LBWEdit")); + lbWindowData.ContextMenuStrip.Items.Add(NB.Translate("_Edit")); lbWindowData.ContextMenuStrip.Items[index++].Click += lbWindowData_Edit_Click; - lbWindowData.ContextMenuStrip.Items.Add(NB.Translate("LBW_LBWDelete")); + lbWindowData.ContextMenuStrip.Items.Add(NB.Translate("_Delete")); lbWindowData.ContextMenuStrip.Items[index++].Click += lbWindowData_Delete_Click; } } diff --git a/EduNetworkBuilder/NB.cs b/EduNetworkBuilder/NB.cs index 818cc4a..9918c95 100644 --- a/EduNetworkBuilder/NB.cs +++ b/EduNetworkBuilder/NB.cs @@ -400,7 +400,7 @@ namespace EduNetworkBuilder Button btnAccept = new Button(); btnAccept.Location = new Point(cbQuestions.Location.X, cbQuestions.Location.Y + cbQuestions.Height + 10); - btnAccept.Text = NB.Translate("NB_ChangeLangOK"); + btnAccept.Text = NB.Translate("_OK"); btnAccept.Click += (s, g) => { Button b = (Button)s; Form f = (Form)b.Parent; f.Close(); }; LanguageForm.Controls.Add(lblText); diff --git a/EduNetworkBuilder/NetTestEditor.cs b/EduNetworkBuilder/NetTestEditor.cs index b966881..98021ca 100644 --- a/EduNetworkBuilder/NetTestEditor.cs +++ b/EduNetworkBuilder/NetTestEditor.cs @@ -42,8 +42,8 @@ namespace EduNetworkBuilder Text = NB.Translate("NTE_lblSource"); Text = NB.Translate("NTE_lblTest"); Text = NB.Translate("NTE_lblDest"); - Text = NB.Translate("NTE_btnOK"); - Text = NB.Translate("NTE_btnCancel"); + Text = NB.Translate("_Done"); + Text = NB.Translate("_Cancel"); Text = NB.Translate("NTE_Form"); } @@ -118,11 +118,11 @@ namespace EduNetworkBuilder { cbSource.Items.Add(ContextHelp); } - cbDest.Items.Add(NB.Translate("NTE_Read")); + cbDest.Items.Add(NB.Translate("_Read")); } else if (ToEdit.TheTest == NetTestType.LockAll || ToEdit.TheTest == NetTestType.LockGateway) { - cbDest.Items.Add(NB.Translate("NTE_All")); + cbDest.Items.Add(NB.Translate("_All")); } else if (ToEdit.TheTest == NetTestType.LockDHCP) { diff --git a/EduNetworkBuilder/Network.cs b/EduNetworkBuilder/Network.cs index 5160b1a..65cbe7f 100644 --- a/EduNetworkBuilder/Network.cs +++ b/EduNetworkBuilder/Network.cs @@ -674,7 +674,7 @@ namespace EduNetworkBuilder Properties.Settings.Default.Save(); } } - DialogResult answer = MessageBox.Show(NB.Translate("N_MarkAsSolvedDone"),NB.Translate("N_MarkAsSolvedSolved"),MessageBoxButtons.YesNo); + DialogResult answer = MessageBox.Show(NB.Translate("N_MarkAsSolvedDone"),NB.Translate("_Solved"),MessageBoxButtons.YesNo); if(answer == DialogResult.Yes) { ListBoxWindow LBW = new ListBoxWindow(); diff --git a/EduNetworkBuilder/NetworkBuilder.cs b/EduNetworkBuilder/NetworkBuilder.cs index ea1bef7..d503379 100644 --- a/EduNetworkBuilder/NetworkBuilder.cs +++ b/EduNetworkBuilder/NetworkBuilder.cs @@ -78,41 +78,41 @@ namespace EduNetworkBuilder { msMainMenuStrip.Text = NB.Translate("NB_msMainMenuStrip"); fileToolStripMenuItem.Text = NB.Translate("NB_fileToolStripMenuItem"); - newToolStripMenuItem.Text = NB.Translate("NB_newToolStripMenuItem"); - loadToolStripMenuItem.Text = NB.Translate("NB_loadToolStripMenuItem"); + newToolStripMenuItem.Text = NB.Translate("LBW_btnAdd"); + loadToolStripMenuItem.Text = NB.Translate("_Load"); reloadToolStripMenuItem.Text = NB.Translate("NB_reloadToolStripMenuItem"); saveToolStripMenuItem.Text = NB.Translate("NB_saveToolStripMenuItem"); exitToolStripMenuItem.Text = NB.Translate("NB_exitToolStripMenuItem"); - editToolStripMenuItem.Text = NB.Translate("NB_editToolStripMenuItem"); + editToolStripMenuItem.Text = NB.Translate("_Edit"); cutToolStripMenuItem.Text = NB.Translate("NB_cutToolStripMenuItem"); copyToolStripMenuItem.Text = NB.Translate("NB_copyToolStripMenuItem"); pasteToolStripMenuItem.Text = NB.Translate("NB_pasteToolStripMenuItem"); undoToolStripMenuItem.Text = NB.Translate("NB_undoToolStripMenuItem"); optionsToolStripMenuItem.Text = NB.Translate("NB_optionsToolStripMenuItem"); - allToolStripMenuItem.Text = NB.Translate("NB_allToolStripMenuItem"); - dHCPRequestToolStripMenuItem.Text = NB.Translate("NB_dHCPRequestToolStripMenuItem"); - clearArpTableToolStripMenuItem.Text = NB.Translate("NB_clearArpTableToolStripMenuItem"); + allToolStripMenuItem.Text = NB.Translate("_All"); + dHCPRequestToolStripMenuItem.Text = NB.Translate("NB_NetViewDHCP"); + clearArpTableToolStripMenuItem.Text = NB.Translate("NB_NetViewClr"); clearIPsToolStripMenuItem.Text = NB.Translate("NB_clearIPsToolStripMenuItem"); - pingToolStripMenuItem.Text = NB.Translate("NB_pingToolStripMenuItem"); - helpToolStripMenuItem.Text = NB.Translate("NB_helpToolStripMenuItem"); - helpToolStripMenuItem1.Text = NB.Translate("NB_helpToolStripMenuItem1"); + pingToolStripMenuItem.Text = NB.Translate("_Ping"); + helpToolStripMenuItem.Text = NB.Translate("_Help"); + helpToolStripMenuItem1.Text = NB.Translate("_Help"); aboutToolStripMenuItem.Text = NB.Translate("NB_aboutToolStripMenuItem"); releaseNotesToolStripMenuItem.Text = NB.Translate("NB_releaseNotesToolStripMenuItem"); checkForUpdatesToolStripMenuItem.Text = NB.Translate("NB_checkForUpdatesToolStripMenuItem"); samplesToolStripMenuItem.Text = NB.Translate("NB_samplesToolStripMenuItem"); puzzlesToolStripMenuItem.Text = NB.Translate("NB_puzzlesToolStripMenuItem"); - solvedToolStripMenuItem.Text = NB.Translate("NB_solvedToolStripMenuItem"); - dHCPToolStripMenuItem.Text = NB.Translate("NB_dHCPToolStripMenuItem"); - oneNetworkToolStripMenuItem.Text = NB.Translate("NB_oneNetworkToolStripMenuItem"); - twoNetworksToolStripMenuItem.Text = NB.Translate("NB_twoNetworksToolStripMenuItem"); - threeNetworksToolStripMenuItem.Text = NB.Translate("NB_threeNetworksToolStripMenuItem"); - firewallsToolStripMenuItem.Text = NB.Translate("NB_firewallsToolStripMenuItem"); + solvedToolStripMenuItem.Text = NB.Translate("_Solved"); + dHCPToolStripMenuItem.Text = NB.Translate("_DHCP"); + oneNetworkToolStripMenuItem.Text = NB.Translate("NB_OneNetwork"); + twoNetworksToolStripMenuItem.Text = NB.Translate("NB_TwoNetworks"); + threeNetworksToolStripMenuItem.Text = NB.Translate("NB_ThreeNetworks"); + firewallsToolStripMenuItem.Text = NB.Translate("NB_Firewalls"); toSolveToolStripMenuItem.Text = NB.Translate("NB_toSolveToolStripMenuItem"); - solvedDHCPToolStripMenuItem.Text = NB.Translate("NB_solvedDHCPToolStripMenuItem"); - solvedOneNetworkToolStripMenuItem.Text = NB.Translate("NB_solvedOneNetworkToolStripMenuItem"); - solvedTwoNetworksToolStripMenuItem.Text = NB.Translate("NB_solvedTwoNetworksToolStripMenuItem"); - SolvedThreeNetworksToolStripMenuItem.Text = NB.Translate("NB_SolvedThreeNetworksToolStripMenuItem"); - firewallsToolStripMenuItem1.Text = NB.Translate("NB_firewallsToolStripMenuItem1"); + solvedDHCPToolStripMenuItem.Text = NB.Translate("_DHCP"); + solvedOneNetworkToolStripMenuItem.Text = NB.Translate("NB_OneNetwork"); + solvedTwoNetworksToolStripMenuItem.Text = NB.Translate("NB_TwoNetworks"); + SolvedThreeNetworksToolStripMenuItem.Text = NB.Translate("NB_ThreeNetworks"); + firewallsToolStripMenuItem1.Text = NB.Translate("NB_Firewalls"); lblStatus.Text = NB.Translate("NB_lblStatus"); btnHelp.Text = NB.Translate("NB_btnHelp"); changeLanguageToolStripMenuItem.Text = NB.Translate("NB_changeLanguageToolStripMenuItem"); @@ -233,7 +233,7 @@ namespace EduNetworkBuilder HelpTopics HT = NB.TryParseEnum(me.Name, HelpTopics.None); if(HT != HelpTopics.None) { - myNetwork.NoteActionDone(NetTestType.ReadContextHelp, me.Name, NB.Translate("NTE_Read")); + myNetwork.NoteActionDone(NetTestType.ReadContextHelp, me.Name, NB.Translate("_Read")); NB.ReadContextHelp(HT); } UpdateHelpTopicButtons(); @@ -544,20 +544,20 @@ namespace EduNetworkBuilder { foreach (string tStr in myNetwork.GetIncompleteTestDestinations(ReleasedOn.hostname, true)) { - pbNetworkView.ContextMenuStrip.Items.Add(string.Format(NB.Translate("NB_NetViewPingStr"),tStr)); + pbNetworkView.ContextMenuStrip.Items.Add(string.Format(NB.Translate("_PingStr"),tStr)); pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_Ping_Name_Click; } foreach (string tStr in myNetwork.GetIncompleteTestDestinations(ReleasedOn.hostname, false)) { - pbNetworkView.ContextMenuStrip.Items.Add(string.Format(NB.Translate("NB_NetViewArpStr"), tStr)); + pbNetworkView.ContextMenuStrip.Items.Add(string.Format(NB.Translate("H_ARP_TitleStr"), tStr)); pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_Arp_Name_Click; } } if (ReleasedOn != null && ReleasedOn.IsNotNetDevice()) { - pbNetworkView.ContextMenuStrip.Items.Add(NB.Translate("NB_NetViewPing1")); + pbNetworkView.ContextMenuStrip.Items.Add(NB.Translate("_Ping1")); pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_Ping_Click; - pbNetworkView.ContextMenuStrip.Items.Add(NB.Translate("NB_NetViewArp")); + pbNetworkView.ContextMenuStrip.Items.Add(NB.Translate("H_ARP_Title")); pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_Arp_Click; pbNetworkView.ContextMenuStrip.Items.Add(NB.Translate("NB_NetViewClr")); pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_ArpClear_Click; @@ -566,13 +566,13 @@ namespace EduNetworkBuilder { if (!myNetwork.ItemIsCritical(ReleasedOn.hostname)) { - pbNetworkView.ContextMenuStrip.Items.Add(NB.Translate("LBW_LBWDelete")); + pbNetworkView.ContextMenuStrip.Items.Add(NB.Translate("_Delete")); pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_Delete_Click; } } if (ReleasedOn != null && ReleasedOn.IsNotNetDevice()) { - pbNetworkView.ContextMenuStrip.Items.Add(NB.Translate("LBW_LBWEdit")); + pbNetworkView.ContextMenuStrip.Items.Add(NB.Translate("_Edit")); pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_Edit_Click; } @@ -682,7 +682,7 @@ namespace EduNetworkBuilder if (ItemClickedOn == null) return; //we do not have something chosen to ping from ToolStripMenuItem Pressed = (ToolStripMenuItem)sender; string itemname = Pressed.Text; - string dest = Regex.Replace(itemname, NB.Translate("NB_NetViewPing "), ""); + string dest = Regex.Replace(itemname, NB.Translate("_Ping "), ""); IPAddress destination; destination = myNetwork.DNSLookup(ItemClickedOn, dest); if(destination == null || destination.GetIPString == NB.ZeroIPString) @@ -696,7 +696,7 @@ namespace EduNetworkBuilder if (ItemClickedOn == null) return; //we do not have something chosen to ping from ToolStripMenuItem Pressed = (ToolStripMenuItem)sender; string itemname = Pressed.Text; - string dest = Regex.Replace(itemname, NB.Translate("NB_NetViewArp "), ""); + string dest = Regex.Replace(itemname, NB.Translate("H_ARP_Title "), ""); IPAddress destination; destination = myNetwork.DNSLookup(ItemClickedOn, dest); if (destination == null || destination.GetIPString == NB.ZeroIPString) @@ -711,7 +711,7 @@ namespace EduNetworkBuilder bool todo = true; if (ItemClickedOn == null) return; //we do not have something chosen to arp request from IPAddress destination = new IPAddress(NB.ZeroIPString, "255.255.255.255", IPAddressType.ip_only); - todo = destination.Edit(ItemClickedOn, NB.Translate("NB_NetViewArp2")); + todo = destination.Edit(ItemClickedOn, NB.Translate("H_ARP_Title2")); if (todo) { ItemClickedOn.AskArpFromHere(destination); @@ -901,7 +901,7 @@ namespace EduNetworkBuilder if (result == System.Windows.Forms.DialogResult.Cancel) return; if(!Regex.IsMatch(mydialog.FileName,@"^.*.enbx$")) { - MessageBox.Show(NB.Translate("NB_LoadToolStripMenuItemErr")); + MessageBox.Show(NB.Translate("_LoadErr")); return; } LastPath = mydialog.FileName; @@ -950,7 +950,7 @@ namespace EduNetworkBuilder if (result == System.Windows.Forms.DialogResult.Cancel) { NB.PlaySound(NBSoundType.saved_failed); - lblStatus.Text = NB.Translate("_Save_Canceled"); + lblStatus.Text = NB.Translate("_Canceled"); return; } LastPath = mydialog.FileName; diff --git a/EduNetworkBuilder/NetworkCard.cs b/EduNetworkBuilder/NetworkCard.cs index c2ef6a3..90a24f0 100644 --- a/EduNetworkBuilder/NetworkCard.cs +++ b/EduNetworkBuilder/NetworkCard.cs @@ -702,7 +702,7 @@ namespace EduNetworkBuilder { if (!typeof(T).IsSerializable) { - throw new ArgumentException(NB.Translate("NC_CloneSerialzable"), NB.Translate("NC_source")); + throw new ArgumentException(NB.Translate("NC_CloneSerialzable"), NB.Translate("_source")); } // Don't serialize a null object, simply return the default for that object diff --git a/EduNetworkBuilder/NetworkCardEditor.cs b/EduNetworkBuilder/NetworkCardEditor.cs index 829061d..e9fcf72 100644 --- a/EduNetworkBuilder/NetworkCardEditor.cs +++ b/EduNetworkBuilder/NetworkCardEditor.cs @@ -133,7 +133,7 @@ namespace EduNetworkBuilder Text = NB.Translate("NCE_label1"); Text = NB.Translate("NCE_label2"); Text = NB.Translate("NCE_label3"); - Text = NB.Translate("NCE_btnDone"); + Text = NB.Translate("_Done"); Text = NB.Translate("NCE_lblLinkStatus"); Text = NB.Translate("NCE_Form"); } @@ -191,7 +191,7 @@ namespace EduNetworkBuilder { MyNicToEdit.TunnelEndpoint = new IPAddress(NB.ZeroIPString, "255.255.255.0", IPAddressType.ip_only); } - MyNicToEdit.TunnelEndpoint.Edit(nd, NB.Translate("NCE_VPNEnd")); + MyNicToEdit.TunnelEndpoint.Edit(nd, NB.Translate("_Endpt")); UpdateForm(); } } diff --git a/EduNetworkBuilder/NetworkComponent.cs b/EduNetworkBuilder/NetworkComponent.cs index a7db48b..0caf337 100644 --- a/EduNetworkBuilder/NetworkComponent.cs +++ b/EduNetworkBuilder/NetworkComponent.cs @@ -85,7 +85,7 @@ namespace EduNetworkBuilder { if (!typeof(T).IsSerializable) { - throw new ArgumentException(NB.Translate("NC_CloneSerialzable"), NB.Translate("NC_source")); + throw new ArgumentException(NB.Translate("NC_CloneSerialzable"), NB.Translate("_source")); } // Don't serialize a null object, simply return the default for that object diff --git a/EduNetworkBuilder/NetworkDevice.cs b/EduNetworkBuilder/NetworkDevice.cs index 281a33d..29eeed9 100644 --- a/EduNetworkBuilder/NetworkDevice.cs +++ b/EduNetworkBuilder/NetworkDevice.cs @@ -1145,7 +1145,7 @@ namespace EduNetworkBuilder public void AskArpFromHere(IPAddress Destination, PacketMessage Tracker=null) { //We need to create a packet - Packet ArpPacket = new Packet(this, Destination, NB.Translate("NB_NetViewArp2"), PacketType.arp_request); + Packet ArpPacket = new Packet(this, Destination, NB.Translate("H_ARP_Title2"), PacketType.arp_request); if (Tracker != null) ArpPacket.ReplaceMessage(Tracker); Network myNet = NB.GetNetwork(); @@ -1486,8 +1486,8 @@ namespace EduNetworkBuilder { if(nPacket.destMAC != nc.MAC) { - nPacket.Tracking.Status = NB.Translate("ND_ProcessArrival_IPError1"); - nPacket.Tracking.AddMessage(DebugLevel.info, this, NB.Translate("ND_ProcessArrival_IPError2")); + nPacket.Tracking.Status = NB.Translate("ND_ProssArr_Error1"); + nPacket.Tracking.AddMessage(DebugLevel.info, this, NB.Translate("ND_ProssArr_Error")); nPacket.MyStatus = PacketStatus.finished_failed; myNet.addPacket(nPacket); //so it gets pulled out apropriately tPacket.payloadPacket = null; @@ -1518,8 +1518,8 @@ namespace EduNetworkBuilder else { //There is no nic that matches the incoming IP - nPacket.Tracking.Status = NB.Translate("ND_ProcessArrival_VPNNicErr1"); - nPacket.Tracking.AddMessage(DebugLevel.info, this, NB.Translate("ND_ProcessArrival_VPNNicErr2")); + nPacket.Tracking.Status = NB.Translate("ND_ProssArr_Error1"); + nPacket.Tracking.AddMessage(DebugLevel.info, this, NB.Translate("ND_ProssArr_Error")); nPacket.MyStatus = PacketStatus.finished_failed; myNet.addPacket(nPacket); //so it gets pulled out apropriately return; @@ -1579,8 +1579,8 @@ namespace EduNetworkBuilder } else { - tPacket.AddMessage(DebugLevel.info, NB.Translate("ND_ProssArrNotSameNet")); - tPacket.Tracking.Status = hostname + ":\t" + string.Format(NB.Translate("ND_ProssArrNotSameNet")) + tPacket.sourceIP.GetIP.ToIpString() + " -> " + hostname; + tPacket.AddMessage(DebugLevel.info, NB.Translate("ND_ProssArr_PingErr")); + tPacket.Tracking.Status = hostname + ":\t" + string.Format(NB.Translate("ND_ProssArr_PingErr")) + tPacket.sourceIP.GetIP.ToIpString() + " -> " + hostname; tPacket.MyStatus = PacketStatus.finished_ok; } return; diff --git a/EduNetworkBuilder/OptionsWindow.cs b/EduNetworkBuilder/OptionsWindow.cs index bf8c5f9..b125349 100644 --- a/EduNetworkBuilder/OptionsWindow.cs +++ b/EduNetworkBuilder/OptionsWindow.cs @@ -51,7 +51,7 @@ namespace EduNetworkBuilder private void LanguagifyComponents() { - Text = NB.Translate("OW_btnDone"); + Text = NB.Translate("_Done"); Text = NB.Translate("OW_lblNetTitle"); Text = NB.Translate("OW_cbDisplayTitles"); Text = NB.Translate("OW_lblNetSize"); @@ -180,11 +180,11 @@ namespace EduNetworkBuilder lbTests.ContextMenuStrip = new ContextMenuStrip(); } lbTests.ContextMenuStrip.Items.Clear(); - lbTests.ContextMenuStrip.Items.Add(NB.Translate("DC_UpdateForm+")); + lbTests.ContextMenuStrip.Items.Add(NB.Translate("_Add")); lbTests.ContextMenuStrip.Items[index++].Click += lbTests_Add_Click; - lbTests.ContextMenuStrip.Items.Add(NB.Translate("LBW_LBWEdit")); + lbTests.ContextMenuStrip.Items.Add(NB.Translate("_Edit")); lbTests.ContextMenuStrip.Items[index++].Click += lbTests_Edit_Click; - lbTests.ContextMenuStrip.Items.Add(NB.Translate("LBW_LBWDelete")); + lbTests.ContextMenuStrip.Items.Add(NB.Translate("_Delete")); lbTests.ContextMenuStrip.Items[index++].Click += lbTests_Delete_Click; } } @@ -201,11 +201,11 @@ namespace EduNetworkBuilder lbTests.ContextMenuStrip = new ContextMenuStrip(); } lbTests.ContextMenuStrip.Items.Clear(); - lbTests.ContextMenuStrip.Items.Add(NB.Translate("DC_UpdateForm+")); + lbTests.ContextMenuStrip.Items.Add(NB.Translate("_Add")); lbTests.ContextMenuStrip.Items[index++].Click += lbTests_Add_Click; - lbTests.ContextMenuStrip.Items.Add(NB.Translate("LBW_LBWEdit")); + lbTests.ContextMenuStrip.Items.Add(NB.Translate("_Edit")); lbTests.ContextMenuStrip.Items[index++].Click += lbTests_Edit_Click; - lbTests.ContextMenuStrip.Items.Add(NB.Translate("LBW_LBWDelete")); + lbTests.ContextMenuStrip.Items.Add(NB.Translate("_Delete")); lbTests.ContextMenuStrip.Items[index++].Click += lbTests_Delete_Click; } } @@ -253,15 +253,15 @@ namespace EduNetworkBuilder lbTags.ContextMenuStrip = new ContextMenuStrip(); } lbTags.ContextMenuStrip.Items.Clear(); - lbTags.ContextMenuStrip.Items.Add(NB.Translate("DC_UpdateForm+")); + lbTags.ContextMenuStrip.Items.Add(NB.Translate("_Add")); lbTags.ContextMenuStrip.Items[index++].Click += lbTags_Add_Click; if (lbTags.SelectedIndex != -1) { - lbTags.ContextMenuStrip.Items.Add(NB.Translate("LBW_LBWEdit")); + lbTags.ContextMenuStrip.Items.Add(NB.Translate("_Edit")); lbTags.ContextMenuStrip.Items[index++].Click += lbTags_Edit_Click; - lbTags.ContextMenuStrip.Items.Add(NB.Translate("NTE_Read")); + lbTags.ContextMenuStrip.Items.Add(NB.Translate("_Read")); lbTags.ContextMenuStrip.Items[index++].Click += lbTags_Read_Click; - lbTags.ContextMenuStrip.Items.Add(NB.Translate("LBW_LBWDelete")); + lbTags.ContextMenuStrip.Items.Add(NB.Translate("_Delete")); lbTags.ContextMenuStrip.Items[index++].Click += lbTags_Delete_Click; } } @@ -299,7 +299,7 @@ namespace EduNetworkBuilder Button Done = new Button(); Done.Click += btnClose_Click; Choice.DoubleClick += btnClose_Click; - Done.Text = NB.Translate("OW_btnDone"); + Done.Text = NB.Translate("_Done"); Done.Location = new Point(1, Choice.Location.Y + Choice.Height + 5); QuestionForm.Controls.Clear(); QuestionForm.Controls.Add(Choice); diff --git a/EduNetworkBuilder/PacketMessage.cs b/EduNetworkBuilder/PacketMessage.cs index c1ff9ab..cf7ce3f 100644 --- a/EduNetworkBuilder/PacketMessage.cs +++ b/EduNetworkBuilder/PacketMessage.cs @@ -44,7 +44,7 @@ namespace EduNetworkBuilder { if (!typeof(T).IsSerializable) { - throw new ArgumentException(NB.Translate("NC_CloneSerialzable"), NB.Translate("NC_source")); + throw new ArgumentException(NB.Translate("NC_CloneSerialzable"), NB.Translate("_source")); } // Don't serialize a null object, simply return the default for that object diff --git a/EduNetworkBuilder/RTFWindow.cs b/EduNetworkBuilder/RTFWindow.cs index 794db67..c20e3e1 100644 --- a/EduNetworkBuilder/RTFWindow.cs +++ b/EduNetworkBuilder/RTFWindow.cs @@ -113,7 +113,7 @@ namespace EduNetworkBuilder private void LanguagifyComponents() { rtbContent.Text = NB.Translate("RTFW_rtbContent"); - btnOK.Text = NB.Translate("RTFW_btnOK"); + btnOK.Text = NB.Translate("_OK"); Text = NB.Translate("RTFW_Form"); lblFind.Text = NB.Translate("RTFW_lblFind"); } diff --git a/EduNetworkBuilder/Resources/languages/edustrings.fr.resx b/EduNetworkBuilder/Resources/languages/edustrings.fr.resx index a4d83f5..c4df3bd 100644 --- a/EduNetworkBuilder/Resources/languages/edustrings.fr.resx +++ b/EduNetworkBuilder/Resources/languages/edustrings.fr.resx @@ -123,10 +123,10 @@ Fichier - + Nouveau - + Charge @@ -138,7 +138,7 @@ Sortie - + Éditer @@ -156,25 +156,25 @@ Options - + Tous - + Requête DHCP - + Effacer Arp tableau IPs claires - + Ping - + Aidez-Moi - + Aidez-Moi @@ -192,40 +192,40 @@ Puzzle - + Résolu - + DHCP - + One Network - + Deux réseaux - + Trois Réseaux - + Firewalls Résoudre - + DHCP - + One Network - + Deux réseaux - + Trois Réseaux - + Firewalls @@ -243,10 +243,10 @@ HelpGoesHere - + Annuler - + Ok @@ -255,10 +255,10 @@ - - + éditer - + éditer @@ -276,7 +276,7 @@ Serveur DHCP - + DHCP @@ -291,10 +291,10 @@ Passerelle - + Annuler - + OK @@ -303,13 +303,13 @@ Lien - + Annuler LinkEditor - + OK @@ -336,10 +336,10 @@ Dest hôte - + Terminé - + Annuler @@ -360,7 +360,7 @@ Adresse Mac - + Terminé @@ -369,7 +369,7 @@ NetworkCardEditor - + Terminé @@ -405,7 +405,7 @@ OptionsWindow - + OK diff --git a/EduNetworkBuilder/Resources/languages/edustrings.resx b/EduNetworkBuilder/Resources/languages/edustrings.resx index d0e0a28..1895267 100644 --- a/EduNetworkBuilder/Resources/languages/edustrings.resx +++ b/EduNetworkBuilder/Resources/languages/edustrings.resx @@ -125,13 +125,13 @@ File NetworkBuilder fileToolStripMenuItem = File - + New - NetworkBuilder newToolStripMenuItem = New + ListBoxWindow btnAdd = New - + Load - NetworkBuilder loadToolStripMenuItem = Load + _Load = Load Reload @@ -145,9 +145,9 @@ Exit NetworkBuilder exitToolStripMenuItem = Exit - + Edit - NetworkBuilder editToolStripMenuItem = Edit + _Edit = Edit Cut @@ -169,31 +169,27 @@ Options NetworkBuilder optionsToolStripMenuItem = Options - + All - NetworkBuilder allToolStripMenuItem = All + _All = All - + DHCP Request - NetworkBuilder dHCPRequestToolStripMenuItem = DHCP Request + NB_NetViewDHCP = DHCP request - + Clear Arp Table - NetworkBuilder clearArpTableToolStripMenuItem = Clear Arp Table + NB_NetViewClr = Clear Arp Table Clear IPs NetworkBuilder clearIPsToolStripMenuItem = Clear IPs - + Ping - NetworkBuilder pingToolStripMenuItem = Ping + _Ping = Ping - - Help - NetworkBuilder helpToolStripMenuItem = Help - - + Help NetworkBuilder helpToolStripMenuItem1 = Help @@ -217,54 +213,42 @@ Puzzles NetworkBuilder puzzlesToolStripMenuItem = Puzzles - + Solved NetworkBuilder solvedToolStripMenuItem = Solved - + DHCP - NetworkBuilder dHCPToolStripMenuItem = DHCP + DeviceConfig btnDHCP = DHCP - + One Network - NetworkBuilder oneNetworkToolStripMenuItem = One Network + NetworkBuilder solvedOneNetworkToolStripMenuItem = One Network - + Two Networks NetworkBuilder twoNetworksToolStripMenuItem = Two Networks - + Three Networks NetworkBuilder threeNetworksToolStripMenuItem = Three Networks - + Firewalls - NetworkBuilder firewallsToolStripMenuItem = Firewalls + NetworkBuilder firewallsToolStripMenuItem1 = Firewalls To Solve NetworkBuilder toSolveToolStripMenuItem = To Solve - - DHCP - NetworkBuilder solvedDHCPToolStripMenuItem = DHCP - - - One Network - NetworkBuilder solvedOneNetworkToolStripMenuItem = One Network - - + Two Networks NetworkBuilder solvedTwoNetworksToolStripMenuItem = Two Networks - + Three Networks NetworkBuilder SolvedThreeNetworksToolStripMenuItem = Three Networks - - Firewalls - NetworkBuilder firewallsToolStripMenuItem1 = Firewalls - lblStatus NetworkBuilder lblStatus = lblStatus @@ -285,35 +269,19 @@ HelpGoesHere DeviceConfig lblHelp = HelpGoesHere - + Cancel - DeviceConfig btnCancel = Cancel + _Cancel = Cancel - - Ok - DeviceConfig btnOK = Ok + + OK + _OK = OK - - + - DeviceConfig btnNicPlus = + - - + - - DeviceConfig btnNicMinus = - + DeviceConfig btnMinus = - - - edit - DeviceConfig btnNicEdit = edit - - - edit - DeviceConfig btnIfEdit = edit - - - - - DeviceConfig btnIfMinus = - - - + + DeviceConfig btnIfAdd = + @@ -329,10 +297,6 @@ DHCP Server DeviceConfig cbDHCP = DHCP Server - - DHCP - DeviceConfig btnDHCP = DHCP - DeviceConfig DeviceConfig Form = DeviceConfig @@ -349,14 +313,6 @@ Gateway IPAddressEntry lblGateway = Gateway - - Cancel - IPAddressEntry btnCancel = Cancel - - - OK - IPAddressEntry btnOK = OK - IP-Address Entry IPAddressEntry Form = IP-Address Entry @@ -365,26 +321,14 @@ Link LinkEditor btnLink = Link - - Cancel - LinkEditor btnCancel = Cancel - LinkEditor LinkEditor Form = LinkEditor - - OK - ListBoxWindow btnOK = OK - label1 ListBoxWindow lblInstructions = label1 - - New - ListBoxWindow btnAdd = New - Show this at start ListBoxWindow cbLoadPuzzlesAtStart = Show this at start @@ -409,13 +353,9 @@ Dest Host NetTestEditor lblDest = Dest Host - + Done - NetTestEditor btnOK = Done - - - Cancel - NetTestEditor btnCancel = Cancel + OptionsWindow btnDone = Done Edit a Test @@ -441,10 +381,6 @@ MAC Address NetworkCardEditor label3 = MAC Address - - Done - NetworkCardEditor btnDone = Done - LinkStatus NetworkCardEditor lblLinkStatus = LinkStatus @@ -453,10 +389,6 @@ NetworkCardEditor NetworkCardEditor Form = NetworkCardEditor - - Done - OptionsWindow btnDone = Done - Net Title OptionsWindow lblNetTitle = Net Title @@ -505,10 +437,6 @@ RTFWindow rtbContent = [intentionally blank. content is loaded from file] - - OK - RTFWindow btnOK = OK - RTFWindow RTFWindow Form = RTFWindow @@ -523,7 +451,7 @@ ARP - Text used in the program on buttons and the like + H_ARP_Title = Arp Comparing IP addresses: @@ -731,8 +659,8 @@ The wireless signal was too weak. Packet dropped. NetworkLink WirelessDropped = The wireless signal was too weak. Packet dropped. - - Saved + + Canceled String used when we have successfully saved the network. @@ -777,7 +705,7 @@ Wireless SSID - + Add DeviceConfig UpdateForm+ = Add @@ -829,19 +757,19 @@ Encryption key mismatch. Packet dropped. Network Device ProcessArrival EncryptErr2 = Encryption key mismatch. Packet dropped. - + No VPN nic to recieve packet. Check VPN IP - Network Device ProcessArrival IPError1 = No VPN nic to recieve packet. Check VPN IP + Network Device ProcessArrival VPNNicErr1 = No VPN nic to recieve packet. Check VPN IP - + No corresponding IP on vpn. Packet dropped. - Network Device ProcessArrival IPError2 = No corresponding IP on vpn. Packet dropped. + Network Device ProcessArrival VPNNicErr2 = No corresponding IP on vpn. Packet dropped. ERROR! A packet returned to a machine that we were not expecting it from. Network Device ProcessArrival PackReturnErr1 = ERROR! A packet returned to a machine that we were not expecting it from. - + The broadcast ping reached a destination that was not on the same network Network Device ProcessArrival PingErr1 = The broadcast ping reached a destination that was not on the same network @@ -853,14 +781,6 @@ Success! The ping returned from its destination. Network Device ProcessArrival PingReturn1 = Success! The ping returned from its destination. - - No VPN nic to recieve packet. Check VPN IP - Network Device ProcessArrival VPNNicErr1 = No VPN nic to recieve packet. Check VPN IP - - - No corresponding IP on vpn. Packet dropped. - Network Device ProcessArrival VPNNicErr2 = No corresponding IP on vpn. Packet dropped. - Packet sent out tunnel but no endpoint set. Dropping Network Device TunnelPacketFromHere Error = Packet sent out tunnel but no endpoint set. Dropping @@ -909,18 +829,10 @@ Are sure you want to forget what puzzles you have done? LBW_btnResetYouSure? = Are sure you want to forget what puzzles you have done? - - ALL - LBT_LBWALL = ALL - - + (All Solved) LBT_LBWAllS = (All Solved) - - Cancel - LBW_LBWCancel = Cancel - Double-Click the interface to add/edit the range of DHCP to serve. LBW_LBWDblClckIf = Double-Click the interface to add/edit the range of DHCP to serve. @@ -929,22 +841,14 @@ Double-click a route to change it. LBW_LBWDblClckRout = Double-click a route to change it. - + Delete - LBW_LBWDelete = Delete + _Delete = Delete For greater detail, click on the check-boxes LBW_LBWDetail = For greater detail, click on the check-boxes - - Edit - LBW_LBWEdit = Edit - - - Load - LBW_LBWLoad = Load - --Routes from NICs (Read-Only)-- LBW_UpdateFormNICRout = --Routes from NICs (Read-Only)-- @@ -961,10 +865,6 @@ Choose a Language: NB_ChangeLang2 = Choose a Language: - - OK - NB_ChangeLangOK = OK - English NB_NBEn = English @@ -1221,37 +1121,21 @@ ^Level NB_Level = ^Level - + EduNetworkBuilder can only open .enbx files. If this is a valid edunetwork file, please rename it. - NB_LoadToolStripMenuItemErr = EduNetworkBuilder can only open .enbx files. If this is a valid edunetwork file, please rename it. + _LoadErr = EduNetworkBuilder can only open .enbx files. If this is a valid edunetwork file, please rename it. - - Arp - NB_NetViewArp = Arp + + ARP request [host] + H_ARP_Title = _Ping - - Arp request [host] - NB_NetViewArp = NB_NetViewPing + + ARP request + H_ARP_Title2 = Arp request - - Arp request - NB_NetViewArp2 = Arp request - - - Clear Arp Table - NB_NetViewClr = Clear Arp Table - - - DHCP request - NB_NetViewDHCP = DHCP request - - - Ping - NB_NetViewPing = Ping - - + Ping [host] - NB_NetViewPing = Ping [host] + _Ping = Ping [host] Ping IP @@ -1261,21 +1145,17 @@ EduNetworkBuilder NB_UpdteFrmName = EduNetworkBuilder - - All - NTE_All = All - - + Read - NTE_Read = Read + _Read = Read Solved! Would you like to open the puzzle box to go to the next puzzle? 'No' will let you continue to play with this one. N_MarkAsSolvedDone = Solved! Would you like to open the puzzle box to go to the next puzzle? 'No' will let you continue to play with this one. - + Solved - N_MarkAsSolvedSolved = Solved + _Solved = Solved ----All Done---- @@ -1321,13 +1201,13 @@ Skipping Invalid Puzzle: '{0}' NB_LoadPuzInfo = Skipping Invalid Puzzle: '{0}' - - Arp {0} - NB_NetViewArpStr = Arp {0} + + ARP {0} + H_ARP_TitleStr = Arp {0} - + Ping {0} - NB_NetViewPingStr = Ping {0} + _PingStr = Ping {0} Remove Link To {0} @@ -1353,9 +1233,9 @@ Disconnected NCE_UdfrmDiscon = Disconnected - + Endpoint - NCE_VPNEnd = Endpoint + _Endpt = Endpoint The type must be serializable. @@ -1369,9 +1249,9 @@ The packet was rejected by the firewall. NC_ProssInPackReject = The packet was rejected by the firewall. - + source - NC_source = source + _source = source Locked NIC @@ -1478,7 +1358,7 @@ ND_PrepPackRoutErr = ERROR: No route or local interface for packet. - Arp Request found + ARP Request found ND_ProssArrArp = Arp Request found @@ -1486,7 +1366,7 @@ ND_ProssArrArpFailStr = ARP failed: Arrived at a machine that was not expecting it and was rejected. {0} -> {1} - Arp request success: Who Has {0} tell {1} = {2} + ARP request success: Who Has {0} tell {1} = {2} ND_ProssArrArpSuccess = Arp request success: Who Has {0} tell {1} = {2} @@ -1501,9 +1381,9 @@ DHCP Request found Server: {0} ND_ProssArrDHCPStr = DHCP Request found Server: {0} - + The broadcast ping reached a destination that was not on the same network - ND_ProssArrNotSameNet = The broadcast ping reached a destination that was not on the same network + ND_ProssArr_PingErr = The broadcast ping reached a destination that was not on the same network Ping partial success: {0}% packet loss. {1} -> {2}