diff --git a/EduNetworkBuilder/EduNetworkBuilder.csproj b/EduNetworkBuilder/EduNetworkBuilder.csproj index 3d2573f..a1bf2b5 100644 --- a/EduNetworkBuilder/EduNetworkBuilder.csproj +++ b/EduNetworkBuilder/EduNetworkBuilder.csproj @@ -28,7 +28,7 @@ Tim Young true publish.htm - 41 + 42 1.0.0.%2a false true diff --git a/EduNetworkBuilder/NetworkBuilder.cs b/EduNetworkBuilder/NetworkBuilder.cs index 044766f..0c56a5c 100644 --- a/EduNetworkBuilder/NetworkBuilder.cs +++ b/EduNetworkBuilder/NetworkBuilder.cs @@ -605,7 +605,9 @@ namespace EduNetworkBuilder { foreach(string str in pi.PuzzleTags) { - if(Regex.IsMatch(str,NB.Translate("NB_Level"))) + //string What = NB.Translate("NB_Level"); + string What = "^Level"; + if (Regex.IsMatch(str,What)) { if (!LevelTags.Contains(str, StringComparer.OrdinalIgnoreCase)) LevelTags.Add(str); @@ -719,7 +721,8 @@ namespace EduNetworkBuilder if (!DoneList.Contains(tStr)) { pbNetworkView.ContextMenuStrip.Items.Add(string.Format(NB.Translate("_PingStr"), tStr)); - pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_Ping_Name_Click; + pbNetworkView.ContextMenuStrip.Items[index].Click += pbNetworkView_Ping_Name_Click; + pbNetworkView.ContextMenuStrip.Items[index++].Tag = tStr; DoneList.Add(tStr); } } @@ -731,7 +734,8 @@ namespace EduNetworkBuilder if (!DoneList.Contains(tStr)) { pbNetworkView.ContextMenuStrip.Items.Add(string.Format(NB.Translate("_Traceroute") + " " + tStr)); - pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_Traceroute_Name_Click; + pbNetworkView.ContextMenuStrip.Items[index].Click += pbNetworkView_Traceroute_Name_Click; + pbNetworkView.ContextMenuStrip.Items[index++].Tag = tStr; DoneList.Add(tStr); } } @@ -741,7 +745,8 @@ namespace EduNetworkBuilder if (!DoneList.Contains(tStr)) { pbNetworkView.ContextMenuStrip.Items.Add(string.Format(NB.Translate("H_ARP_TitleStr"), tStr)); - pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_Arp_Name_Click; + pbNetworkView.ContextMenuStrip.Items[index].Click += pbNetworkView_Arp_Name_Click; + pbNetworkView.ContextMenuStrip.Items[index++].Tag = tStr; DoneList.Add(tStr); } } @@ -1018,7 +1023,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("_Ping") + " ", ""); + string dest = (string)Pressed.Tag; IPAddress destination; destination = myNetwork.DNSLookup(ItemClickedOn, dest); if(destination == null || destination.GetIPString == NB.ZeroIPString) @@ -1033,7 +1038,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("_Traceroute") + " ", ""); + string dest = (string)Pressed.Tag; IPAddress destination; destination = myNetwork.DNSLookup(ItemClickedOn, dest); if (destination == null || destination.GetIPString == NB.ZeroIPString) @@ -1048,7 +1053,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("H_ARP_Title")+" ", ""); + string dest = (string)Pressed.Tag; IPAddress destination; destination = myNetwork.DNSLookup(ItemClickedOn, dest); if (destination == null || destination.GetIPString == NB.ZeroIPString) diff --git a/EduNetworkBuilder/Resources/Level0_BrokenLink.enbx b/EduNetworkBuilder/Resources/Level0_BrokenLink.enbx index dfc1c85..cea7546 100644 --- a/EduNetworkBuilder/Resources/Level0_BrokenLink.enbx +++ b/EduNetworkBuilder/Resources/Level0_BrokenLink.enbx @@ -3,7 +3,10 @@ This shows what happens if there is a broken network wire in your network. Ping laptop1 and see where the packet dies. Open one of the devices connected to that link and you will see that, even though the device has a link connected to it, it does not have a "connection light" saying it is connected. (The connection-light is the * at the end of the eth name). You can also edit the network card to see if it thinks it is connected. Remove the broken network wire by right-clicking one of the devices at either end and removing the link. Then add the link again. A successful ping tells you if you got it working. + +Cela montre ce qui se passe s'il existe un fil de réseau brisé dans votre réseau. Ping laptop1 et voir où le paquet est en train de mourir. Ouvrez l'un des périphériques connectés à ce lien et vous verrez que même si le périphérique possède un lien qui lui est connecté, il ne dispose pas d'une "lumière de connexion" indiquant qu'il est connecté. (La lumière de connexion est le * à la fin du nom de l'éth). Vous pouvez également éditer la carte réseau pour voir si elle pense qu'elle est connectée. Retirez le fil de réseau cassé en cliquant avec le bouton droit de la souris sur l'un des périphériques à chaque extrémité et en supprimant le lien. Ensuite, ajoutez le lien à nouveau. Un ping réussi vous dit si vous l'avez travaillé. Broken Link + Lien brisé 1024 1024 100 diff --git a/EduNetworkBuilder/Resources/Level0_HiddenSwitch.enbx b/EduNetworkBuilder/Resources/Level0_HiddenSwitch.enbx index 346db1f..8fd385d 100644 --- a/EduNetworkBuilder/Resources/Level0_HiddenSwitch.enbx +++ b/EduNetworkBuilder/Resources/Level0_HiddenSwitch.enbx @@ -5,11 +5,15 @@ You bought a switch but forgot where you plugget it into. Now where did you put that? What do you do when you know where something is, but not exactly? You go to the device you know it is plugged into and follow the wire. To solve this, drag the switch around, and then find the other end of the wire and "drag" on the empty spot to "find" it. Then, change the IP address of the missing switch. + Vous avez acheté un commutateur, mais vous avez oublié où vous l'achetez. Maintenant, où avez-vous mis cela? +Que faites-vous lorsque vous savez où se trouve quelque chose, mais pas exactement? Vous allez à l'appareil, vous savez qu'il est branché et suivez le fil. +Pour résoudre ce problème, faites glisser le commutateur autour, puis retrouvez l'autre extrémité du fil et faites-le glisser sur l'endroit vide pour le "trouver". Ensuite, modifiez l'adresse IP du commutateur manquant. Where did I put that? + Où ai-je mis cela? 1024 1024 100 - True + full 0 5 141 @@ -42,6 +46,8 @@ To solve this, drag the switch around, and then find the other end of the wire a lo 104 False + + lo0 @@ -66,6 +72,8 @@ To solve this, drag the switch around, and then find the other end of the wire a eth 105 False + + eth0 @@ -105,6 +113,8 @@ To solve this, drag the switch around, and then find the other end of the wire a lo 124 False + + lo0 @@ -129,6 +139,8 @@ To solve this, drag the switch around, and then find the other end of the wire a eth 125 False + + eth0 @@ -168,6 +180,8 @@ To solve this, drag the switch around, and then find the other end of the wire a lo 110 False + + lo0 @@ -192,6 +206,8 @@ To solve this, drag the switch around, and then find the other end of the wire a management_interface 111 False + + management_interface0 @@ -216,6 +232,8 @@ To solve this, drag the switch around, and then find the other end of the wire a port 112 False + + port1 @@ -240,6 +258,8 @@ To solve this, drag the switch around, and then find the other end of the wire a port 113 False + + port2 @@ -264,6 +284,8 @@ To solve this, drag the switch around, and then find the other end of the wire a port 114 False + + port3 @@ -288,6 +310,8 @@ To solve this, drag the switch around, and then find the other end of the wire a port 115 False + + port4 @@ -312,6 +336,8 @@ To solve this, drag the switch around, and then find the other end of the wire a port 116 False + + port5 @@ -336,6 +362,8 @@ To solve this, drag the switch around, and then find the other end of the wire a port 117 False + + port6 @@ -360,6 +388,8 @@ To solve this, drag the switch around, and then find the other end of the wire a port 118 False + + port7 @@ -400,6 +430,8 @@ To solve this, drag the switch around, and then find the other end of the wire a lo 131 False + + lo0 @@ -424,6 +456,8 @@ To solve this, drag the switch around, and then find the other end of the wire a management_interface 132 False + + management_interface0 @@ -448,6 +482,8 @@ To solve this, drag the switch around, and then find the other end of the wire a port 133 False + + port1 @@ -472,6 +508,8 @@ To solve this, drag the switch around, and then find the other end of the wire a port 134 False + + port2 @@ -496,6 +534,8 @@ To solve this, drag the switch around, and then find the other end of the wire a port 135 False + + port3 @@ -520,6 +560,8 @@ To solve this, drag the switch around, and then find the other end of the wire a port 136 False + + port4 @@ -544,6 +586,8 @@ To solve this, drag the switch around, and then find the other end of the wire a port 137 False + + port5 @@ -568,6 +612,8 @@ To solve this, drag the switch around, and then find the other end of the wire a port 138 False + + port6 @@ -592,6 +638,8 @@ To solve this, drag the switch around, and then find the other end of the wire a port 139 False + + port7 @@ -631,6 +679,8 @@ To solve this, drag the switch around, and then find the other end of the wire a lo 101 False + + lo0 @@ -655,6 +705,8 @@ To solve this, drag the switch around, and then find the other end of the wire a eth 102 False + + eth0 @@ -694,6 +746,8 @@ To solve this, drag the switch around, and then find the other end of the wire a lo 120 False + + lo0 @@ -718,6 +772,8 @@ To solve this, drag the switch around, and then find the other end of the wire a eth 121 False + + eth0 @@ -742,6 +798,8 @@ To solve this, drag the switch around, and then find the other end of the wire a eth 122 False + + eth1 @@ -768,7 +826,7 @@ To solve this, drag the switch around, and then find the other end of the wire a net_switch0 port1 - + pc0_link_net_switch0 normal 126 @@ -785,7 +843,7 @@ To solve this, drag the switch around, and then find the other end of the wire a net_switch0 port2 - + laptop0_link_net_switch0 normal 127 @@ -802,7 +860,7 @@ To solve this, drag the switch around, and then find the other end of the wire a router0 eth0 - + net_switch0_link_router0 normal 128 @@ -819,7 +877,7 @@ To solve this, drag the switch around, and then find the other end of the wire a laptop1 eth0 - + router0_link_laptop1 normal 129 @@ -836,7 +894,7 @@ To solve this, drag the switch around, and then find the other end of the wire a net_switch1 port1 - + net_switch0_link_net_switch1 normal 140 True diff --git a/EduNetworkBuilder/Resources/languages/edustrings.fr.resx b/EduNetworkBuilder/Resources/languages/edustrings.fr.resx index 6e4456c..31f7d31 100644 --- a/EduNetworkBuilder/Resources/languages/edustrings.fr.resx +++ b/EduNetworkBuilder/Resources/languages/edustrings.fr.resx @@ -1106,7 +1106,7 @@ NB_ChngLngSure = Are you Sure? - Niveau ^ + ^Niveau NB_Level = ^Level