diff --git a/EduNetworkBuilder/Packet.cs b/EduNetworkBuilder/Packet.cs
index 6b491ae..936e065 100644
--- a/EduNetworkBuilder/Packet.cs
+++ b/EduNetworkBuilder/Packet.cs
@@ -340,8 +340,8 @@ namespace EduNetworkBuilder
myDirection = nb_direction.to_dst;
else
myDirection = nb_direction.to_src;
- Console.WriteLine(NB.Translate("Starting on link.") + string.Format(" SMAC: {0} DMAC: {1}",sourceMAC,destMAC));
- AddMessage(DebugLevel.debug, " " + "Starting on link");
+ Console.WriteLine(NB.Translate("P_StartingOnLink") + string.Format(" SMAC: {0} DMAC: {1}",sourceMAC,destMAC));
+ AddMessage(DebugLevel.debug, " " + NB.Translate("P_StartingOnLink"));
}
public void StartOnDevice(NetworkDevice theDevice)
@@ -366,9 +366,9 @@ namespace EduNetworkBuilder
}
if(MyType == PacketType.arp_request && MyStatus == PacketStatus.finished_failed)
{
- Tracking.AddMessage(DebugLevel.info, "Packet",
- string.Format("Packet failed to reach any IP. No such IP on network: {0}", destIP.GetIPString));
- Tracking.Status = string.Format("Packet failed to reach IP: {0}",destIP.GetIPString);
+ Tracking.AddMessage(DebugLevel.info, NB.Translate("P_Packet"),
+ NB.Translate("P_PacketFailedToReach") + ": " + destIP.GetIPString);
+ Tracking.Status = NB.Translate("P_PacketFailedToReach2") + ": "+ destIP.GetIPString;
MyStatus = PacketStatus.finished_failed;
}
if (MyStatus != PacketStatus.finished)
@@ -448,7 +448,7 @@ namespace EduNetworkBuilder
{
if (!typeof(T).IsSerializable)
{
- throw new ArgumentException("The type must be serializable.", "source");
+ throw new ArgumentException(NB.Translate("NC_CloneSerialzable"), NB.Translate("NC_source"));
}
// Don't serialize a null object, simply return the default for that object
diff --git a/EduNetworkBuilder/Resources/languages/edustrings.resx b/EduNetworkBuilder/Resources/languages/edustrings.resx
index d0e0a28..5cfbb71 100644
--- a/EduNetworkBuilder/Resources/languages/edustrings.resx
+++ b/EduNetworkBuilder/Resources/languages/edustrings.resx
@@ -1625,4 +1625,20 @@
Not found.
RTFW_NotFound = Not found.
+
+ Packet
+ P_Packet = Packet
+
+
+ Packet failed to reach any IP. No such IP on network
+ P_PacketFailedToReach = Packet failed to reach any IP. No such IP on network
+
+
+ Packet failed to reach IP
+ P_PacketFailedToReach2 = Packet failed to reach IP
+
+
+ Starting on link.
+ P_StartingOnLink = Starting on link.
+
\ No newline at end of file