Minor changes to translate stuff

This commit is contained in:
Tim Young 2015-11-18 12:21:13 -05:00
parent e772f05dd1
commit 25f89495c3
1 changed files with 5 additions and 5 deletions

View File

@ -544,12 +544,12 @@ namespace EduNetworkBuilder
{ {
foreach (string tStr in myNetwork.GetIncompleteTestDestinations(ReleasedOn.hostname, true)) foreach (string tStr in myNetwork.GetIncompleteTestDestinations(ReleasedOn.hostname, true))
{ {
pbNetworkView.ContextMenuStrip.Items.Add("Ping " + tStr); pbNetworkView.ContextMenuStrip.Items.Add(string.Format("Ping {0}",tStr));
pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_Ping_Name_Click; pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_Ping_Name_Click;
} }
foreach (string tStr in myNetwork.GetIncompleteTestDestinations(ReleasedOn.hostname, false)) foreach (string tStr in myNetwork.GetIncompleteTestDestinations(ReleasedOn.hostname, false))
{ {
pbNetworkView.ContextMenuStrip.Items.Add("Arp " + tStr); pbNetworkView.ContextMenuStrip.Items.Add(string.Format("Arp {0}", tStr));
pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_Arp_Name_Click; pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_Arp_Name_Click;
} }
} }
@ -581,12 +581,12 @@ namespace EduNetworkBuilder
ItemClickedOn = ReleasedOn; ItemClickedOn = ReleasedOn;
if(ReleasedOn.HasDHCPNic()) if(ReleasedOn.HasDHCPNic())
{ {
pbNetworkView.ContextMenuStrip.Items.Add("NB_NetViewDHCP"); pbNetworkView.ContextMenuStrip.Items.Add(NB.Translate("NB_NetViewDHCP"));
pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_DHCPRequest_Click; pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_DHCPRequest_Click;
} }
foreach (string host in ReleasedOn.ListOfConnectedHosts()) foreach (string host in ReleasedOn.ListOfConnectedHosts())
{ {
pbNetworkView.ContextMenuStrip.Items.Add("Remove Link To " + host); pbNetworkView.ContextMenuStrip.Items.Add(string.Format("Remove Link To {0}", host));
pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_RemoveLink_Click; pbNetworkView.ContextMenuStrip.Items[index++].Click += pbNetworkView_RemoveLink_Click;
} }
} }
@ -901,7 +901,7 @@ namespace EduNetworkBuilder
if (result == System.Windows.Forms.DialogResult.Cancel) return; if (result == System.Windows.Forms.DialogResult.Cancel) return;
if(!Regex.IsMatch(mydialog.FileName,@"^.*.enbx$")) if(!Regex.IsMatch(mydialog.FileName,@"^.*.enbx$"))
{ {
MessageBox.Show("NB_LoadToolStripMenuItemErr"); MessageBox.Show(NB.Translate("NB_LoadToolStripMenuItemErr"));
return; return;
} }
LastPath = mydialog.FileName; LastPath = mydialog.FileName;