From c5955743d82e7edf52e1679bdce2e313fa9cedba Mon Sep 17 00:00:00 2001 From: Scott Carlton Date: Mon, 5 Dec 2016 10:23:34 -0800 Subject: [PATCH] Fixed broken up strings --- src/dotnet/commands/dotnet-new/Program.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dotnet/commands/dotnet-new/Program.cs b/src/dotnet/commands/dotnet-new/Program.cs index 73315043c..b9d9e536d 100644 --- a/src/dotnet/commands/dotnet-new/Program.cs +++ b/src/dotnet/commands/dotnet-new/Program.cs @@ -61,7 +61,7 @@ namespace Microsoft.DotNet.Tools.New { if (File.Exists(Path.Combine(Directory.GetCurrentDirectory(), entry))) { - Reporter.Error.WriteLine($"{LocalizableStrings.CreatingNewError}{languageName}{LocalizableStrings.DirectoryContainsError}{entry}"); + Reporter.Error.WriteLine(LocalizableStrings.ProjectContainsError, languageName, entry); return 1; } } @@ -87,11 +87,11 @@ namespace Microsoft.DotNet.Tools.New if (hasFilesToOverride) { - Reporter.Error.WriteLine($"{LocalizableStrings.CreatingNewError}{languageName}{LocalizableStrings.ProjectFailedError}"); + Reporter.Error.WriteLine(LocalizableStrings.ProjectFailedError, languageName); return 1; } - Reporter.Output.WriteLine($"{LocalizableStrings.CreatedNew}{languageName}{LocalizableStrings.ProjectIn}{Directory.GetCurrentDirectory()}."); + Reporter.Output.WriteLine(LocalizableStrings.CreatedNewProject, languageName, Directory.GetCurrentDirectory()); return 0; } @@ -192,8 +192,8 @@ namespace Microsoft.DotNet.Tools.New var template = language.Templates.FirstOrDefault(t => StringComparer.OrdinalIgnoreCase.Equals(typeValue, t.Name)); if (template == null) { - Reporter.Error.WriteLine($"{LocalizableStrings.UnrecognizedType}: {typeValue}".Red()); - Reporter.Error.WriteLine($"{LocalizableStrings.AvailableTypes} {language.Name} :".Red()); + Reporter.Error.WriteLine((LocalizableStrings.UnrecognizedType, typeValue).Red()); + Reporter.Error.WriteLine(LocalizableStrings.AvailableTypes, language.Name).Red()); foreach (var t in language.Templates) { Reporter.Error.WriteLine($"- {t}".Red());