diff --git a/EduNetworkBuilder/DeviceConfig.cs b/EduNetworkBuilder/DeviceConfig.cs index a55ac8a..b0cfae2 100644 --- a/EduNetworkBuilder/DeviceConfig.cs +++ b/EduNetworkBuilder/DeviceConfig.cs @@ -254,7 +254,7 @@ namespace EduNetworkBuilder Label lblText = new Label(); lblText.Location = new Point(5, 5); - lblText.Text = "DC_UpdateFormChoose:"; + lblText.Text = NB.Translate("DC_UpdateFormChoose:"); ComboBox cbQuestions = new ComboBox(); cbQuestions.Location = new Point(lblText.Location.X + lblText.Width + 5, lblText.Location.Y); @@ -271,7 +271,7 @@ namespace EduNetworkBuilder Button btnAccept = new Button(); btnAccept.Location = new Point(cbQuestions.Location.X, cbQuestions.Location.Y + cbQuestions.Height + 10); - btnAccept.Text = "DC_UpdateForm+"; + btnAccept.Text = NB.Translate("DC_UpdateForm+"); btnAccept.Click += (s, g) => { Button b = (Button)s; Form f = (Form)b.Parent; f.Close(); }; QuestionForm.Controls.Add(lblText); diff --git a/EduNetworkBuilder/IPAddressEntry.cs b/EduNetworkBuilder/IPAddressEntry.cs index 3f0cd64..0f16ab2 100644 --- a/EduNetworkBuilder/IPAddressEntry.cs +++ b/EduNetworkBuilder/IPAddressEntry.cs @@ -154,8 +154,8 @@ namespace EduNetworkBuilder { DHCPInterface = DHCPif; lblIP.Text = NB.Translate("IPAE_EditIf"); - lblNetmask.Text = "IPAE_EditStart"; - lblGateway.Text = "IPAE_EditEnd"; + lblNetmask.Text = NB.Translate("IPAE_EditStart"); + lblGateway.Text = NB.Translate("IPAE_EditEnd"); tbIPAddress.Enabled = false; tbGateway.Enabled = true; tbNetmask.Enabled = true; @@ -200,7 +200,7 @@ namespace EduNetworkBuilder if (taddress < startaddress) { e.Cancel = true; - MessageBox.Show("IPAE_tbGateValIPEqualLarger"); + MessageBox.Show(NB.Translate("IPAE_tbGateValIPEqualLarger")); } } } @@ -215,7 +215,7 @@ namespace EduNetworkBuilder if (!DHCPInterface.IsLocal(new IPAddress(tbNetmask.Text))) { e.Cancel = true; - MessageBox.Show("IPAE_tbNtmskValEndIPRange"); + MessageBox.Show(NB.Translate("IPAE_tbNtmskValEndIPRange")); } } }