From b37c29b8adf49c2377de4e4162e7d14c3a4a2026 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Mon, 16 Nov 2015 14:17:07 -0600 Subject: [PATCH] IPAE Translate Edits --- EduNetworkBuilder/IPAddressEntry.cs | 12 +++++----- .../Resources/languages/edustrings.resx | 24 +++++++++++++++++++ 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/EduNetworkBuilder/IPAddressEntry.cs b/EduNetworkBuilder/IPAddressEntry.cs index dc63a8e..3f0cd64 100644 --- a/EduNetworkBuilder/IPAddressEntry.cs +++ b/EduNetworkBuilder/IPAddressEntry.cs @@ -153,9 +153,9 @@ namespace EduNetworkBuilder public bool Edit(NetworkDevice ToEdit, IPAddress DHCPif) { DHCPInterface = DHCPif; - lblIP.Text = "Interface"; - lblNetmask.Text = "Start"; - lblGateway.Text = "End"; + lblIP.Text = NB.Translate("IPAE_EditIf"); + lblNetmask.Text = "IPAE_EditStart"; + lblGateway.Text = "IPAE_EditEnd"; tbIPAddress.Enabled = false; tbGateway.Enabled = true; tbNetmask.Enabled = true; @@ -195,12 +195,12 @@ namespace EduNetworkBuilder if (!DHCPInterface.IsLocal(new IPAddress(tbGateway.Text))) { e.Cancel = true; - MessageBox.Show("The end IP in the range must be within the scope of the interface."); + MessageBox.Show(NB.Translate("IPAE_tbGateValEndIPRange")); } if (taddress < startaddress) { e.Cancel = true; - MessageBox.Show("The end IP must be equal to or larger than the start IP."); + MessageBox.Show("IPAE_tbGateValIPEqualLarger"); } } } @@ -215,7 +215,7 @@ namespace EduNetworkBuilder if (!DHCPInterface.IsLocal(new IPAddress(tbNetmask.Text))) { e.Cancel = true; - MessageBox.Show("The start IP in the range must be within the scope of the interface."); + MessageBox.Show("IPAE_tbNtmskValEndIPRange"); } } } diff --git a/EduNetworkBuilder/Resources/languages/edustrings.resx b/EduNetworkBuilder/Resources/languages/edustrings.resx index 32af30a..fb49d4d 100644 --- a/EduNetworkBuilder/Resources/languages/edustrings.resx +++ b/EduNetworkBuilder/Resources/languages/edustrings.resx @@ -869,4 +869,28 @@ Packet going into tunnel. Network Device TunnelPacketFromHere Message = Packet going into tunnel. + + End + IPAE_EditIf = End + + + Interface + IPAE_EditIf = Interface + + + Start + IPAE_EditStart = Start + + + The end IP in the range must be within the scope of the interface. + IPAE_tbGateValEndIPRange = The end IP in the range must be within the scope of the interface. + + + The end IP must be equal to or larger than the start IP. + IPAE_tbGateValIPEqualLarger = The end IP must be equal to or larger than the start IP. + + + The start IP in the range must be within the scope of the interface. + IPAE_tbNtmskValEndIPRange = The start IP in the range must be within the scope of the interface. + \ No newline at end of file