Use .Localize extension function

This commit is contained in:
John Lewin 2017-01-04 07:23:30 -08:00
parent 06af3e220e
commit ace89e1e5a
48 changed files with 193 additions and 193 deletions

View file

@ -63,13 +63,13 @@ namespace MatterHackers.MatterControl.EeProm
FlowLayoutWidget row = new FlowLayoutWidget();
row.HAnchor = Agg.UI.HAnchor.ParentLeftRight;
row.BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor;
GuiWidget descriptionWidget = AddDescription(LocalizedString.Get("Description"));
GuiWidget descriptionWidget = AddDescription("Description".Localize());
descriptionWidget.Margin = new BorderDouble(left: 3);
row.AddChild(descriptionWidget);
CreateSpacer(row);
GuiWidget valueText = new TextWidget(LocalizedString.Get("Value"), textColor: ActiveTheme.Instance.PrimaryTextColor);
GuiWidget valueText = new TextWidget("Value".Localize(), textColor: ActiveTheme.Instance.PrimaryTextColor);
valueText.VAnchor = Agg.UI.VAnchor.ParentCenter;
valueText.Margin = new BorderDouble(left: 5, right: 60);
row.AddChild(valueText);
@ -186,7 +186,7 @@ namespace MatterHackers.MatterControl.EeProm
this.AddChild(topToBottom);
Title = LocalizedString.Get("Firmware EEPROM Settings");
Title = "Firmware EEPROM Settings".Localize();
ShowAsSystemWindow();