Localize label text

This commit is contained in:
John Lewin 2018-03-07 10:52:59 -08:00
parent c18c660767
commit 74b6a7f30f

View file

@ -452,7 +452,7 @@ namespace MatterHackers.MatterControl.DesignTools
&& !string.IsNullOrEmpty(unlockLink.DetailsPageLink)
&& !item.Persistable)
{
var row = CreateSettingsRow(item.Persistable ? "Registered" : "Demo Mode");
var row = CreateSettingsRow(item.Persistable ? "Registered".Localize() : "Demo Mode".Localize());
Button detailsLink = theme.ButtonFactory.Generate("Unlock".Localize(), AggContext.StaticData.LoadIcon("locked.png", 16, 16));
detailsLink.BackgroundColor = theme.Colors.PrimaryAccentColor.AdjustContrast(theme.Colors.PrimaryTextColor, 8).ToColor();