This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Localize changes for dotnet-remove (#4900)
* Rename centralized LocalizableStrings file * Added RemoveDefinition * Rebase * rebase, remove localizablestrings for help * loc for help command * remove localizablestrings * Localization changes for dotnet-remove * Slight refactoring
- Loading branch information
Showing
10 changed files
with
83 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/dotnet/commands/dotnet-add/dotnet-add-p2p/LocalizableStrings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Microsoft.DotNet.Tools.Add.ProjectToProjectReference | ||
{ | ||
internal class LocalizableStrings | ||
{ | ||
public const string ReferenceIsInvalid = "Reference `{0}` is invalid."; | ||
|
||
public const string SpecifyAtLeastOneReferenceToAdd = "You must specify at least one reference to add. Please run dotnet add --help for more information."; | ||
|
||
public const string ProjectAlreadyHasAReference = "Project {0} already has a reference `{1}`."; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace Microsoft.DotNet.Tools.Remove | ||
{ | ||
internal class LocalizableStrings | ||
{ | ||
public const string NetRemoveCommand = ".NET Remove Command"; | ||
|
||
public const string Usage = "Usage"; | ||
|
||
public const string Options = "Options"; | ||
|
||
public const string HelpDefinition = "Show help information"; | ||
|
||
public const string Arguments = "Arguments"; | ||
|
||
public const string ArgumentsObjectDefinition = "The object of the operation. If a project file is not specified, it defaults to the current directory."; | ||
|
||
public const string ArgumentsCommandDefinition = "Command to be executed on <object>."; | ||
|
||
public const string ArgsDefinition = "Any extra arguments passed to the command. Use `dotnet add <command> --help` to get help about these arguments."; | ||
|
||
public const string Commands = "Commands"; | ||
|
||
public const string CommandP2PDefinition = "Remove project to project (p2p) reference from a project"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/dotnet/commands/dotnet-remove/dotnet-remove-p2p/LocalizableStrings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace Microsoft.DotNet.Tools.Remove.ProjectToProjectReference | ||
{ | ||
internal class LocalizableStrings | ||
{ | ||
/// del p2p | ||
public const string ReferenceNotFoundInTheProject = "Specified reference {0} does not exist in project {1}."; | ||
|
||
public const string ReferenceRemoved = "Reference `{0}` deleted from the project."; | ||
|
||
public const string SpecifyAtLeastOneReferenceToRemove = "You must specify at least one reference to delete. Please run dotnet delete --help for more information."; | ||
|
||
public const string ReferenceDeleted = "Reference `{0}` deleted."; | ||
|
||
public const string SpecifyAtLeastOneReferenceToDelete = "You must specify at least one reference to delete. Please run dotnet delete --help for more information."; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters