From 7ce75070ec0c50ef7ceee422e5dd03e8d95e75ff Mon Sep 17 00:00:00 2001 From: John Lewin Date: Mon, 4 Dec 2017 10:40:03 -0800 Subject: [PATCH] Inline localize, remove string formatting from localized text --- AboutPage/CheckForUpdatesPage.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/AboutPage/CheckForUpdatesPage.cs b/AboutPage/CheckForUpdatesPage.cs index 73a1d8e1a..852903ab6 100644 --- a/AboutPage/CheckForUpdatesPage.cs +++ b/AboutPage/CheckForUpdatesPage.cs @@ -64,10 +64,7 @@ namespace MatterHackers.MatterControl.AboutPage UpdateControlData.Instance.CheckForUpdateUserRequested(); }; - string currentBuildNo = VersionInfo.Instance.BuildVersion; - string currentBuildInfoLabel = String.Format("Current Build : {0}", currentBuildNo); - - var currentBuildInfo = new TextWidget(currentBuildInfoLabel.Localize()); + var currentBuildInfo = new TextWidget("Current Build".Localize() + $" : {VersionInfo.Instance.BuildVersion}"); currentBuildInfo.HAnchor = HAnchor.Stretch; currentBuildInfo.Margin = new BorderDouble(left: 5, bottom: 15, top: 20); currentBuildInfo.TextColor = ActiveTheme.Instance.PrimaryTextColor;