NetTest Trans Edit

This commit is contained in:
Peter Wilson
2015-11-16 16:14:17 -06:00
parent f400408ec4
commit 717b719217
3 changed files with 171 additions and 39 deletions

View File

@@ -233,7 +233,7 @@ namespace EduNetworkBuilder
public static int PacketPixelSize = 8; //The size of the packet pixel
public static int PacketVersionNum = 2; //2 uses the new stuff. Anything else uses the old stuff
public const int GridSize = 10;
public static string[,] LanguageChoices = { { "English", "en" }, { "French", "fr" } };
public static string[,] LanguageChoices = { { NB.Translate("NB_NBEn"), "en" }, { NB.Translate("NB_NBFr"), "fr" } };
public static int WirelessMaxUnsuccessfulLink = 120; //The link will connect, but the packet will drop
public static int WirelessMaxSuccessfulLink = 100; //Packets will drop after this distance
public static int WirelessReconnectDistance = 70; //Try to find a closer AP if we are this far out.
@@ -373,11 +373,11 @@ namespace EduNetworkBuilder
//we need to choose a language:
Form LanguageForm = new Form();
LanguageForm.Text = "Choose Language";
LanguageForm.Text = NB.Translate("NB_ChangeLang1");
Label lblText = new Label();
lblText.Location = new Point(5, 5);
lblText.AutoSize = true;
lblText.Text = "Choose a Language:";
lblText.Text = NB.Translate("NB_ChangeLang2");
LanguageForm.Icon = Properties.Resources.NBIco;
ComboBox cbQuestions = new ComboBox();
@@ -400,7 +400,7 @@ namespace EduNetworkBuilder
Button btnAccept = new Button();
btnAccept.Location = new Point(cbQuestions.Location.X, cbQuestions.Location.Y + cbQuestions.Height + 10);
btnAccept.Text = "OK";
btnAccept.Text = NB.Translate("NB_ChangeLangOK");
btnAccept.Click += (s, g) => { Button b = (Button)s; Form f = (Form)b.Parent; f.Close(); };
LanguageForm.Controls.Add(lblText);
@@ -523,7 +523,7 @@ namespace EduNetworkBuilder
//make a new window if needed
foreach(Form myfrm in Application.OpenForms)
{
if(myfrm.Name == "Context")
if(myfrm.Name == NB.Translate("NB_RdCtxtHelp"))
{
//We have a context window
tForm = (RTFWindow)myfrm;
@@ -534,7 +534,7 @@ namespace EduNetworkBuilder
{
//We do not have one yet. Make a new one
tForm = new RTFWindow(RTFWindowContents.help);
tForm.Name = "Context";
tForm.Name = NB.Translate("NB_RdCtxtHelp");
}
//load help
tForm.Show();