From ab41acd8f5cbd7ecec4aea6e35dea03075bb8d79 Mon Sep 17 00:00:00 2001 From: Zlatko Knezevic Date: Thu, 5 Jan 2017 12:05:58 -0800 Subject: [PATCH] Adding strings for dotnet-sln command for LOC Adding strings both in the command folder as well as in the Help command. --- .../commands/dotnet-help/HelpCommand.cs | 1 + .../dotnet-help/LocalizableStrings.cs | 2 ++ .../commands/dotnet-sln/LocalizableStrings.cs | 34 +++++++++++++++++++ ...ivenThatIWantToShowHelpForDotnetCommand.cs | 1 + 4 files changed, 38 insertions(+) create mode 100644 src/dotnet/commands/dotnet-sln/LocalizableStrings.cs diff --git a/src/dotnet/commands/dotnet-help/HelpCommand.cs b/src/dotnet/commands/dotnet-help/HelpCommand.cs index a6e521555..1a14efe6b 100644 --- a/src/dotnet/commands/dotnet-help/HelpCommand.cs +++ b/src/dotnet/commands/dotnet-help/HelpCommand.cs @@ -35,6 +35,7 @@ namespace Microsoft.DotNet.Tools.Help pack {LocalizableStrings.PackDefinition} migrate {LocalizableStrings.MigrateDefinition} clean {LocalizableStrings.CleanDefinition} + sln {LocalizableStrings.SlnDefinition} Project modification commands: add Add items to the project diff --git a/src/dotnet/commands/dotnet-help/LocalizableStrings.cs b/src/dotnet/commands/dotnet-help/LocalizableStrings.cs index 2740d3cf0..d6ba17f6e 100644 --- a/src/dotnet/commands/dotnet-help/LocalizableStrings.cs +++ b/src/dotnet/commands/dotnet-help/LocalizableStrings.cs @@ -61,5 +61,7 @@ public const string VsTestDefinition = "Runs Microsoft Test Execution Command Line Tool."; public const string CleanDefinition = "Clean build output(s)."; + + public const string SlnDefinition = "Modify solution (SLN) files."; } } diff --git a/src/dotnet/commands/dotnet-sln/LocalizableStrings.cs b/src/dotnet/commands/dotnet-sln/LocalizableStrings.cs new file mode 100644 index 000000000..e5ccd3cbe --- /dev/null +++ b/src/dotnet/commands/dotnet-sln/LocalizableStrings.cs @@ -0,0 +1,34 @@ +// Copyright (c) .NET Foundation and contributors. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +namespace Microsoft.DotNet.Tools.Sln +{ + internal class LocalizableStrings + { + public const string AppFullName = ".NET modify solution file(s) command"; + + public const string AppDescription = "Command to add, remove and list projects from the solution (SLN) file."; + + public const string AppHelpText = "Projects to add to the solution."; + + public const string CmdSlnFile = ""; + + public const string CmdSlnFileText = "Solution file to operate on. If not specified, the command will search the current directory for one."; + + public const string AddSubcommandHelpText = "Add a specified project to the solution."; + + public const string RemoveSubcommandHelpText = "Remove the specified project from the solution. The project is not impacted."; + + public const string ListSubcommandHelpText = "List all projects in the solution."; + + public const string CreateSubcommandHelpText = "Create a solution file."; + + public const string MultipleSlnFilesError = "The current directory contains more than one solution file. Please specify the solution file to use."; + + public const string ProjectFileNotFoundError = "The specified project {0} was not found."; + + public const string SolutionFileNotFoundError = "The specified solution file {0} was not found."; + + public const string NoSolutionFileError = "The current directory does not contain a solution file. Please specify a solution file to use."; + } +} diff --git a/test/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs b/test/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs index 1c072eaf1..5b487e9cf 100644 --- a/test/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs +++ b/test/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs @@ -41,6 +41,7 @@ Commands: pack Creates a NuGet package. migrate Migrates a project.json based project to a msbuild based project. clean Clean build output(s). + sln Modify solution (SLN) files. Project modification commands: add Add items to the project