From 822542a381a84b9a34e7dbefe43aec9148cb539a Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Mon, 16 Nov 2015 12:03:44 -0600 Subject: [PATCH] Translation Changes --- EduNetworkBuilder/NetworkDevice.cs | 10 +++++----- .../Resources/languages/edustrings.resx | 12 ++++++++++++ 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/EduNetworkBuilder/NetworkDevice.cs b/EduNetworkBuilder/NetworkDevice.cs index 4bceb76..d3d5bf1 100644 --- a/EduNetworkBuilder/NetworkDevice.cs +++ b/EduNetworkBuilder/NetworkDevice.cs @@ -1472,8 +1472,8 @@ namespace EduNetworkBuilder Network myNet = NB.GetNetwork(); if (tPacket.MyType == PacketType.tun_packet || tPacket.MyType == PacketType.vpn_packet) { - tPacket.Tracking.AddMessage(DebugLevel.info,this,"Arrived at the tunnel endpoint."); - tPacket.Tracking.Status = "Arrived at the tunnel endpoint."; + tPacket.Tracking.AddMessage(DebugLevel.info,this,NB.Translate("ND_ProcessArrival_Arrived")); + tPacket.Tracking.Status = NB.Translate("ND_ProcessArrival_Arrived"); //We If the encryption matches, we succeed. Otherwise, we fail tPacket.MyStatus = PacketStatus.finished_ok; //It stops here @@ -1485,10 +1485,10 @@ namespace EduNetworkBuilder { if(nPacket.destMAC != nc.MAC) { - nPacket.Tracking.Status = "No VPN nic to recieve packet. Check VPN IP"; - nPacket.Tracking.AddMessage(DebugLevel.info, this, "No corresponding IP on vpn. Packet dropped."); + nPacket.Tracking.Status = NB.Translate("ND_ProcessArrival_IPError1"); + nPacket.Tracking.AddMessage(DebugLevel.info, this, NB.Translate("ND_ProcessArrival_IPError2")); nPacket.MyStatus = PacketStatus.finished_failed; - myNet.addPacket(nPacket); //so it gets pulled out apropriately + myNet.addPacket(nPacket); //so it gets pulled out apropriatelya tPacket.payloadPacket = null; return; } diff --git a/EduNetworkBuilder/Resources/languages/edustrings.resx b/EduNetworkBuilder/Resources/languages/edustrings.resx index 9d8b01e..fe0a793 100644 --- a/EduNetworkBuilder/Resources/languages/edustrings.resx +++ b/EduNetworkBuilder/Resources/languages/edustrings.resx @@ -777,6 +777,18 @@ Wireless SSID + + Arrived at the tunnel endpoint. + ND_ProcessArrival_Arrived = Arrived at the tunnel endpoint. + + + No VPN nic to recieve packet. Check VPN IP + ND_ProcessArrival_IPError1 = No VPN nic to recieve packet. Check VPN IP + + + No corresponding IP on vpn. Packet dropped. + ND_ProcessArrival_IPError2 = No corresponding IP on vpn. Packet dropped. + Packet sent out tunnel but no endpoint set. Dropping ND_TunnelPacketFromHere_Error = Packet sent out tunnel but no endpoint set. Dropping