IPAE Translate Edits

This commit is contained in:
Peter Wilson 2015-11-16 14:17:07 -06:00
parent 8681c50f48
commit b37c29b8ad
2 changed files with 30 additions and 6 deletions

View File

@ -153,9 +153,9 @@ namespace EduNetworkBuilder
public bool Edit(NetworkDevice ToEdit, IPAddress DHCPif) public bool Edit(NetworkDevice ToEdit, IPAddress DHCPif)
{ {
DHCPInterface = DHCPif; DHCPInterface = DHCPif;
lblIP.Text = "Interface"; lblIP.Text = NB.Translate("IPAE_EditIf");
lblNetmask.Text = "Start"; lblNetmask.Text = "IPAE_EditStart";
lblGateway.Text = "End"; lblGateway.Text = "IPAE_EditEnd";
tbIPAddress.Enabled = false; tbIPAddress.Enabled = false;
tbGateway.Enabled = true; tbGateway.Enabled = true;
tbNetmask.Enabled = true; tbNetmask.Enabled = true;
@ -195,12 +195,12 @@ namespace EduNetworkBuilder
if (!DHCPInterface.IsLocal(new IPAddress(tbGateway.Text))) if (!DHCPInterface.IsLocal(new IPAddress(tbGateway.Text)))
{ {
e.Cancel = true; 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) if (taddress < startaddress)
{ {
e.Cancel = true; 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))) if (!DHCPInterface.IsLocal(new IPAddress(tbNetmask.Text)))
{ {
e.Cancel = true; e.Cancel = true;
MessageBox.Show("The start IP in the range must be within the scope of the interface."); MessageBox.Show("IPAE_tbNtmskValEndIPRange");
} }
} }
} }

View File

@ -869,4 +869,28 @@
<value>Packet going into tunnel.</value> <value>Packet going into tunnel.</value>
<comment>Network Device TunnelPacketFromHere Message = Packet going into tunnel.</comment> <comment>Network Device TunnelPacketFromHere Message = Packet going into tunnel.</comment>
</data> </data>
<data name="IPAE_EditEnd" xml:space="preserve">
<value>End</value>
<comment>IPAE_EditIf = End</comment>
</data>
<data name="IPAE_EditIf" xml:space="preserve">
<value>Interface</value>
<comment>IPAE_EditIf = Interface</comment>
</data>
<data name="IPAE_EditStart" xml:space="preserve">
<value>Start</value>
<comment>IPAE_EditStart = Start</comment>
</data>
<data name="IPAE_tbGateValEndIPRange" xml:space="preserve">
<value>The end IP in the range must be within the scope of the interface.</value>
<comment>IPAE_tbGateValEndIPRange = The end IP in the range must be within the scope of the interface.</comment>
</data>
<data name="IPAE_tbGateValIPEqualLarger" xml:space="preserve">
<value>The end IP must be equal to or larger than the start IP.</value>
<comment>IPAE_tbGateValIPEqualLarger = The end IP must be equal to or larger than the start IP.</comment>
</data>
<data name="IPAE_tbNtmskValEndIPRange" xml:space="preserve">
<value>The start IP in the range must be within the scope of the interface.</value>
<comment>IPAE_tbNtmskValEndIPRange = The start IP in the range must be within the scope of the interface.</comment>
</data>
</root> </root>