Minor fixes after translation
This commit is contained in:
parent
43f4028ef8
commit
306b6b8424
@ -682,7 +682,7 @@ namespace EduNetworkBuilder
|
|||||||
if (ItemClickedOn == null) return; //we do not have something chosen to ping from
|
if (ItemClickedOn == null) return; //we do not have something chosen to ping from
|
||||||
ToolStripMenuItem Pressed = (ToolStripMenuItem)sender;
|
ToolStripMenuItem Pressed = (ToolStripMenuItem)sender;
|
||||||
string itemname = Pressed.Text;
|
string itemname = Pressed.Text;
|
||||||
string dest = Regex.Replace(itemname, NB.Translate("NB_NetViewPing "), "");
|
string dest = Regex.Replace(itemname, NB.Translate("NB_NetViewPing")+" ", "");
|
||||||
IPAddress destination;
|
IPAddress destination;
|
||||||
destination = myNetwork.DNSLookup(ItemClickedOn, dest);
|
destination = myNetwork.DNSLookup(ItemClickedOn, dest);
|
||||||
if(destination == null || destination.GetIPString == NB.ZeroIPString)
|
if(destination == null || destination.GetIPString == NB.ZeroIPString)
|
||||||
|
@ -2193,7 +2193,7 @@ namespace EduNetworkBuilder
|
|||||||
if(nc == null)
|
if(nc == null)
|
||||||
{
|
{
|
||||||
tPacket.AddMessage(DebugLevel.info, NB.Translate("ND_DoInputFromLink_CardFail1"));
|
tPacket.AddMessage(DebugLevel.info, NB.Translate("ND_DoInputFromLink_CardFail1"));
|
||||||
tPacket.Tracking.Status = hostname + string.Format(NB.Translate("ND_DoInputFromLink_CardFail2"));
|
tPacket.Tracking.Status = hostname + " " + string.Format(NB.Translate("ND_DoInputFromLink_CardFail2"));
|
||||||
tPacket.MyStatus = PacketStatus.finished_failed;
|
tPacket.MyStatus = PacketStatus.finished_failed;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -2232,16 +2232,16 @@ namespace EduNetworkBuilder
|
|||||||
{
|
{
|
||||||
if (tPacket.MyType == PacketType.dhcp_request && !isDHCPServer)
|
if (tPacket.MyType == PacketType.dhcp_request && !isDHCPServer)
|
||||||
{
|
{
|
||||||
tPacket.AddMessage(DebugLevel.debug, hostname + string.Format(NB.Translate("ND_DoInFromLnkDeaf")));
|
tPacket.AddMessage(DebugLevel.debug, hostname + " " +string.Format(NB.Translate("ND_DoInFromLnkDeaf")));
|
||||||
tPacket.Tracking.Status = hostname + string.Format(NB.Translate("ND_DoInFromLnkNoDHCP"));
|
tPacket.Tracking.Status = hostname +" " + string.Format(NB.Translate("ND_DoInFromLnkNoDHCP"));
|
||||||
tPacket.MyStatus = PacketStatus.finished_failed;
|
tPacket.MyStatus = PacketStatus.finished_failed;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((tPacket.MyType == PacketType.ping_answer || tPacket.MyType== PacketType.ping_request) &&
|
if ((tPacket.MyType == PacketType.ping_answer || tPacket.MyType== PacketType.ping_request) &&
|
||||||
!RoutesPackets() && (!HasIPAddress(tPacket.destIP) && !HasBroadcastAddress(tPacket.destIP)))
|
!RoutesPackets() && (!HasIPAddress(tPacket.destIP) && !HasBroadcastAddress(tPacket.destIP)))
|
||||||
{
|
{
|
||||||
tPacket.AddMessage(DebugLevel.debug, hostname + string.Format(NB.Translate("ND_NotRouter")));
|
tPacket.AddMessage(DebugLevel.debug, hostname + " " +string.Format(NB.Translate("ND_NotRouter")));
|
||||||
tPacket.Tracking.Status = hostname + string.Format(NB.Translate("ND_NotRouter2"));
|
tPacket.Tracking.Status = hostname + " " + string.Format(NB.Translate("ND_NotRouter2"));
|
||||||
tPacket.MyStatus = PacketStatus.finished_failed;
|
tPacket.MyStatus = PacketStatus.finished_failed;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -2251,7 +2251,7 @@ namespace EduNetworkBuilder
|
|||||||
myType != NetworkComponentType.wrouter)
|
myType != NetworkComponentType.wrouter)
|
||||||
{
|
{
|
||||||
tPacket.AddMessage(DebugLevel.debug, hostname + string.Format(NB.Translate("ND_NoLocIP")));
|
tPacket.AddMessage(DebugLevel.debug, hostname + string.Format(NB.Translate("ND_NoLocIP")));
|
||||||
tPacket.Tracking.Status = hostname + string.Format(NB.Translate("ND_NoLocIP2"));
|
tPacket.Tracking.Status = hostname + " " + string.Format(NB.Translate("ND_NoLocIP2"));
|
||||||
tPacket.MyStatus = PacketStatus.finished_failed;
|
tPacket.MyStatus = PacketStatus.finished_failed;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user