More Localization

Edited previously modified strings for more consistency. Also modified
most strings in Print Level Wizard, and other strings that were not
previously visible because of printer connection difficulties.
This commit is contained in:
gregory-diaz 2014-02-05 18:29:58 -08:00
parent cc0d8a5095
commit ccc0eb898d
14 changed files with 143 additions and 59 deletions

View file

@ -7,6 +7,7 @@ using MatterHackers.Agg;
using MatterHackers.Agg.UI;
using MatterHackers.Agg.Image;
using MatterHackers.Agg.Font;
using MatterHackers.Localizations;
namespace MatterHackers.MatterControl
{
@ -75,14 +76,14 @@ namespace MatterHackers.MatterControl
FlowLayoutWidget yesNoButtonsFlow = new FlowLayoutWidget();
yesNoButtonsFlow.HAnchor |= HAnchor.ParentCenter;
Button yesButton = textImageButtonFactory.Generate("Yes", centerText:true);
Button yesButton = textImageButtonFactory.Generate(new LocalizedString("Yes").Translated, centerText:true);
yesButton.Click += new ButtonBase.ButtonEventHandler(okButton_Click);
yesNoButtonsFlow.AddChild(yesButton);
GuiWidget buttonSpacer = new GuiWidget(10, 10);
yesNoButtonsFlow.AddChild(buttonSpacer);
Button noButton = textImageButtonFactory.Generate("No", centerText: true);
Button noButton = textImageButtonFactory.Generate(new LocalizedString("No").Translated, centerText: true);
noButton.Click += new ButtonBase.ButtonEventHandler(noButton_Click);
yesNoButtonsFlow.AddChild(noButton);
@ -92,7 +93,7 @@ namespace MatterHackers.MatterControl
case MessageType.OK:
{
Button okButton = textImageButtonFactory.Generate("Ok", centerText: true);
Button okButton = textImageButtonFactory.Generate(new LocalizedString("Ok").Translated, centerText: true);
//okButton.DebugShowBounds = true;
okButton.Click += new ButtonBase.ButtonEventHandler(okButton_Click);
okButton.HAnchor = HAnchor.ParentCenter;