Skip to content

Commit d8074b5

Browse files
Copilotbaronfel
andcommitted
Make verb strings localizable for project/solution options
Co-authored-by: baronfel <[email protected]>
1 parent 99e653e commit d8074b5

16 files changed

+139
-3
lines changed

src/Cli/dotnet/Commands/CliCommandStrings.resx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,12 @@ If not specified the file will be generated inside the default 'TestResults' dir
604604
<value>Defines the path of the solution file to {0}. Use path to the solution file, or path to the directory containing the solution file. If not specified, it defaults to the current directory.</value>
605605
<comment>{0} is the verb (e.g., "test", "run")</comment>
606606
</data>
607+
<data name="VerbRun" xml:space="preserve">
608+
<value>run</value>
609+
</data>
610+
<data name="VerbTest" xml:space="preserve">
611+
<value>test</value>
612+
</data>
607613
<data name="CmdSourceOption" xml:space="preserve">
608614
<value>SOURCE</value>
609615
</data>

src/Cli/dotnet/Commands/Run/RunCommandParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal static class RunCommandParser
1717

1818
public static readonly Option<string> RuntimeOption = CommonOptions.RuntimeOption(CliCommandStrings.RunRuntimeOptionDescription);
1919

20-
public static readonly Option<string> ProjectOption = CommonOptions.ProjectOption("run");
20+
public static readonly Option<string> ProjectOption = CommonOptions.ProjectOption(CliCommandStrings.VerbRun);
2121

2222
public static readonly Option<string> FileOption = new("--file")
2323
{

src/Cli/dotnet/Commands/Test/MTP/MicrosoftTestingPlatformOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ namespace Microsoft.DotNet.Cli.Commands.Test;
77

88
internal static class MicrosoftTestingPlatformOptions
99
{
10-
public static readonly Option<string> ProjectOption = CommonOptions.ProjectOption("test");
10+
public static readonly Option<string> ProjectOption = CommonOptions.ProjectOption(CliCommandStrings.VerbTest);
1111

12-
public static readonly Option<string> SolutionOption = CommonOptions.SolutionOption("test");
12+
public static readonly Option<string> SolutionOption = CommonOptions.SolutionOption(CliCommandStrings.VerbTest);
1313

1414
public static readonly Option<string> TestModulesFilterOption = new("--test-modules")
1515
{

src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)