Repository navigation
Remove "please" from error messages - #7483
Conversation
…iles, and tests Removed 'please' from user-facing error messages across 18 .resx files, their corresponding .Designer.cs and .xlf localization files, and updated 11 test files that reference these strings. Kept 'please' in messages where NuGet tooling is at fault (e.g., 'Please file an issue at https://github.com/NuGet/Home') as these are appropriate apologies for internal errors. Fixes NuGet/Home#8141
Reverts changes to Error_CopilotNotReady, Error_ServiceBrokerNotAvailable, Error_CopilotServiceNotAvailable, Error_McpToolServiceNotAvailable, Error_CopilotAccessDenied, and Error_NuGetSolverNotAvailable to avoid overlap with another PR.
…pdated resource strings
Fixed in the latest commit. Found 4 additional test files with assertions still referencing the old "please" wording:
|
|
I wanted to wait for the tests to pass before marking as ready for review. |
There was a problem hiding this comment.
Pull request overview
This PR updates user-facing error/warning messages across NuGet Client to align with Microsoft error message guidelines by removing “please” from directive-style sentences, and updates tests/localization artifacts to match.
Changes:
- Reworded many English strings in
.resxresources (and regenerated corresponding.Designer.csvalues) to remove “please”. - Updated
.xlflocalization files so source strings match the new English text. - Updated unit/functional/integration tests that assert on the affected messages.
Reviewed changes
Copilot reviewed 267 out of 285 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test/NuGet.Tests.Apex/NuGet.Tests.Apex/NuGetEndToEndTests/NuGetConsoleTestCase.cs | Updates expected PMC error text for invalid source formats. |
| test/NuGet.Core.Tests/NuGet.Packaging.Test/PackageBuilderTest.cs | Updates schema incompatibility exception message assertion. |
| test/NuGet.Core.Tests/NuGet.PackageManagement.Test/InstallationCompatibilityTests.cs | Updates min-client-version upgrade guidance assertion. |
| test/NuGet.Core.FuncTests/NuGet.XPlat.FuncTest/XPlatWhyTests.cs | Updates dotnet nuget why output/error assertions. |
| test/NuGet.Core.FuncTests/NuGet.XPlat.FuncTest/XPlatLocalsTests.cs | Updates locals command help/error message expectations. |
| test/NuGet.Core.FuncTests/NuGet.XPlat.FuncTest/XplatListPackageJsonRendererTests.cs | Updates JSON renderer problem text and output assertions. |
| test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetSignTests.cs | Updates signing error constant expected by tests. |
| test/NuGet.Clients.Tests/NuGet.MSSigning.Extensions.Test/NuGetReposignCommandTest.cs | Updates CLI help/error constants for reposign tests. |
| test/NuGet.Clients.Tests/NuGet.MSSigning.Extensions.Test/NuGetMSSignCommandTest.cs | Updates CLI help/error constants for mssign tests. |
| test/NuGet.Clients.Tests/NuGet.CommandLine.Test/NuGetSignCommandTest.cs | Updates sign command help/error constants asserted by tests. |
| test/NuGet.Clients.Tests/NuGet.CommandLine.Test/NuGetPushCommandTest.cs | Updates credential prompt output assertion. |
| test/NuGet.Clients.Tests/NuGet.CommandLine.Test/NuGetListCommandTest.cs | Updates invalid source error assertion. |
| test/NuGet.Clients.FuncTests/NuGet.MSSigning.Extensions.FuncTest/Commands/ReposignCommandTests.cs | Updates expected reposign error output. |
| test/NuGet.Clients.FuncTests/NuGet.MSSigning.Extensions.FuncTest/Commands/MSSignCommandTests.cs | Updates expected mssign error output. |
| test/NuGet.Clients.FuncTests/NuGet.CommandLine.FuncTest/Commands/SignCommandTests.cs | Updates expected sign error output constant. |
| src/NuGet.Core/NuGet.Packaging/Strings.resx | Removes “please” and adjusts packaging resource strings. |
| src/NuGet.Core/NuGet.Packaging/Strings.Designer.cs | Updates generated string doc comments to match .resx. |
| src/NuGet.Core/NuGet.Packaging/Rules/AnalysisResources.resx | Removes “please” from packaging analyzer rule texts. |
| src/NuGet.Core/NuGet.Packaging/Rules/AnalysisResources.Designer.cs | Updates generated doc comments to match analyzer rule .resx. |
| src/NuGet.Core/NuGet.Packaging/Rules/xlf/AnalysisResources.zh-Hans.xlf | Updates localized XLF source strings for analyzer rules. |
| src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/NuGetResources.resx | Removes “please” from package creation resources. |
| src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/NuGetResources.Designer.cs | Updates generated doc comments to match package creation .resx. |
| src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/xlf/NuGetResources.cs.xlf | Updates localized XLF source strings for package creation. |
| src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/xlf/NuGetResources.de.xlf | Updates localized XLF source strings for package creation. |
| src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/xlf/NuGetResources.es.xlf | Updates localized XLF source strings for package creation. |
| src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/xlf/NuGetResources.fr.xlf | Updates localized XLF source strings for package creation. |
| src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/xlf/NuGetResources.it.xlf | Updates localized XLF source strings for package creation. |
| src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/xlf/NuGetResources.ja.xlf | Updates localized XLF source strings for package creation. |
| src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/xlf/NuGetResources.ko.xlf | Updates localized XLF source strings for package creation. |
| src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/xlf/NuGetResources.pl.xlf | Updates localized XLF source strings for package creation. |
| src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/xlf/NuGetResources.pt-BR.xlf | Updates localized XLF source strings for package creation. |
| src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/xlf/NuGetResources.ru.xlf | Updates localized XLF source strings for package creation. |
| src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/xlf/NuGetResources.tr.xlf | Updates localized XLF source strings for package creation. |
| src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/xlf/NuGetResources.zh-Hans.xlf | Updates localized XLF source strings for package creation. |
| src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/xlf/NuGetResources.zh-Hant.xlf | Updates localized XLF source strings for package creation. |
| src/NuGet.Core/NuGet.PackageManagement/Strings.resx | Removes “please” from package management resource strings. |
| src/NuGet.Core/NuGet.PackageManagement/Strings.Designer.cs | Updates generated doc comments to match package management .resx. |
| src/NuGet.Core/NuGet.PackageManagement/xlf/Strings.zh-Hans.xlf | Updates localized XLF source strings for package management. |
| src/NuGet.Core/NuGet.Credentials/Resources.resx | Removes “please” from credentials resource strings. |
| src/NuGet.Core/NuGet.Credentials/Resources.Designer.cs | Updates generated doc comments to match credentials .resx. |
| src/NuGet.Core/NuGet.Credentials/xlf/Resources.cs.xlf | Updates localized XLF source strings for credentials. |
| src/NuGet.Core/NuGet.Credentials/xlf/Resources.de.xlf | Updates localized XLF source strings for credentials. |
| src/NuGet.Core/NuGet.Credentials/xlf/Resources.es.xlf | Updates localized XLF source strings for credentials. |
| src/NuGet.Core/NuGet.Credentials/xlf/Resources.fr.xlf | Updates localized XLF source strings for credentials. |
| src/NuGet.Core/NuGet.Credentials/xlf/Resources.it.xlf | Updates localized XLF source strings for credentials. |
| src/NuGet.Core/NuGet.Credentials/xlf/Resources.ja.xlf | Updates localized XLF source strings for credentials. |
| src/NuGet.Core/NuGet.Credentials/xlf/Resources.ko.xlf | Updates localized XLF source strings for credentials. |
| src/NuGet.Core/NuGet.Credentials/xlf/Resources.pl.xlf | Updates localized XLF source strings for credentials. |
| src/NuGet.Core/NuGet.Credentials/xlf/Resources.pt-BR.xlf | Updates localized XLF source strings for credentials. |
| src/NuGet.Core/NuGet.Credentials/xlf/Resources.ru.xlf | Updates localized XLF source strings for credentials. |
| src/NuGet.Core/NuGet.Credentials/xlf/Resources.tr.xlf | Updates localized XLF source strings for credentials. |
| src/NuGet.Core/NuGet.Credentials/xlf/Resources.zh-Hans.xlf | Updates localized XLF source strings for credentials. |
| src/NuGet.Core/NuGet.Credentials/xlf/Resources.zh-Hant.xlf | Updates localized XLF source strings for credentials. |
| src/NuGet.Core/NuGet.Configuration/Resources.resx | Removes “please” from configuration resource strings. |
| src/NuGet.Core/NuGet.Configuration/Resources.Designer.cs | Updates generated doc comments to match configuration .resx. |
| src/NuGet.Core/NuGet.Configuration/xlf/Resources.cs.xlf | Updates localized XLF source strings for configuration. |
| src/NuGet.Core/NuGet.Configuration/xlf/Resources.de.xlf | Updates localized XLF source strings for configuration. |
| src/NuGet.Core/NuGet.Configuration/xlf/Resources.es.xlf | Updates localized XLF source strings for configuration. |
| src/NuGet.Core/NuGet.Configuration/xlf/Resources.fr.xlf | Updates localized XLF source strings for configuration. |
| src/NuGet.Core/NuGet.Configuration/xlf/Resources.it.xlf | Updates localized XLF source strings for configuration. |
| src/NuGet.Core/NuGet.Configuration/xlf/Resources.ja.xlf | Updates localized XLF source strings for configuration. |
| src/NuGet.Core/NuGet.Configuration/xlf/Resources.ko.xlf | Updates localized XLF source strings for configuration. |
| src/NuGet.Core/NuGet.Configuration/xlf/Resources.pl.xlf | Updates localized XLF source strings for configuration. |
| src/NuGet.Core/NuGet.Configuration/xlf/Resources.pt-BR.xlf | Updates localized XLF source strings for configuration. |
| src/NuGet.Core/NuGet.Configuration/xlf/Resources.ru.xlf | Updates localized XLF source strings for configuration. |
| src/NuGet.Core/NuGet.Configuration/xlf/Resources.tr.xlf | Updates localized XLF source strings for configuration. |
| src/NuGet.Core/NuGet.Configuration/xlf/Resources.zh-Hans.xlf | Updates localized XLF source strings for configuration. |
| src/NuGet.Core/NuGet.Configuration/xlf/Resources.zh-Hant.xlf | Updates localized XLF source strings for configuration. |
| src/NuGet.Core/NuGet.Commands/Strings.resx | Removes “please” from commands resource strings. |
| src/NuGet.Core/NuGet.Commands/Strings.Designer.cs | Updates generated doc comments to match commands .resx. |
| src/NuGet.Core/NuGet.Commands/xlf/Strings.cs.xlf | Updates localized XLF source strings for commands. |
| src/NuGet.Core/NuGet.Commands/xlf/Strings.de.xlf | Updates localized XLF source strings for commands. |
| src/NuGet.Core/NuGet.Commands/xlf/Strings.es.xlf | Updates localized XLF source strings for commands. |
| src/NuGet.Core/NuGet.Commands/xlf/Strings.fr.xlf | Updates localized XLF source strings for commands. |
| src/NuGet.Core/NuGet.Commands/xlf/Strings.it.xlf | Updates localized XLF source strings for commands. |
| src/NuGet.Core/NuGet.Commands/xlf/Strings.ja.xlf | Updates localized XLF source strings for commands. |
| src/NuGet.Core/NuGet.Commands/xlf/Strings.ko.xlf | Updates localized XLF source strings for commands. |
| src/NuGet.Core/NuGet.Commands/xlf/Strings.pl.xlf | Updates localized XLF source strings for commands. |
| src/NuGet.Core/NuGet.Commands/xlf/Strings.pt-BR.xlf | Updates localized XLF source strings for commands. |
| src/NuGet.Core/NuGet.Commands/xlf/Strings.ru.xlf | Updates localized XLF source strings for commands. |
| src/NuGet.Core/NuGet.Commands/xlf/Strings.tr.xlf | Updates localized XLF source strings for commands. |
| src/NuGet.Core/NuGet.Commands/xlf/Strings.zh-Hans.xlf | Updates localized XLF source strings for commands. |
| src/NuGet.Core/NuGet.Commands/xlf/Strings.zh-Hant.xlf | Updates localized XLF source strings for commands. |
| src/NuGet.Core/NuGet.Build.Tasks/Strings.resx | Removes “please” from build tasks resource strings. |
| src/NuGet.Core/NuGet.Build.Tasks/Strings.Designer.cs | Updates generated doc comments to match build tasks .resx. |
| src/NuGet.Core/NuGet.Build.Tasks/xlf/Strings.cs.xlf | Updates localized XLF source strings for build tasks. |
| src/NuGet.Core/NuGet.Build.Tasks/xlf/Strings.de.xlf | Updates localized XLF source strings for build tasks. |
| src/NuGet.Core/NuGet.Build.Tasks/xlf/Strings.es.xlf | Updates localized XLF source strings for build tasks. |
| src/NuGet.Core/NuGet.Build.Tasks/xlf/Strings.fr.xlf | Updates localized XLF source strings for build tasks. |
| src/NuGet.Core/NuGet.Build.Tasks/xlf/Strings.it.xlf | Updates localized XLF source strings for build tasks. |
| src/NuGet.Core/NuGet.Build.Tasks/xlf/Strings.ja.xlf | Updates localized XLF source strings for build tasks. |
| src/NuGet.Core/NuGet.Build.Tasks/xlf/Strings.ko.xlf | Updates localized XLF source strings for build tasks. |
| src/NuGet.Core/NuGet.Build.Tasks/xlf/Strings.pl.xlf | Updates localized XLF source strings for build tasks. |
| src/NuGet.Core/NuGet.Build.Tasks/xlf/Strings.pt-BR.xlf | Updates localized XLF source strings for build tasks. |
| src/NuGet.Core/NuGet.Build.Tasks/xlf/Strings.ru.xlf | Updates localized XLF source strings for build tasks. |
| src/NuGet.Core/NuGet.Build.Tasks/xlf/Strings.tr.xlf | Updates localized XLF source strings for build tasks. |
| src/NuGet.Core/NuGet.Build.Tasks/xlf/Strings.zh-Hans.xlf | Updates localized XLF source strings for build tasks. |
| src/NuGet.Core/NuGet.Build.Tasks/xlf/Strings.zh-Hant.xlf | Updates localized XLF source strings for build tasks. |
| src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/VsResources.resx | Removes “please” from VS implementation resource strings. |
| src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/VsResources.Designer.cs | Updates generated doc comments to match VS implementation .resx. |
| src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/xlf/VsResources.cs.xlf | Updates localized XLF source strings for VS implementation. |
| src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/xlf/VsResources.de.xlf | Updates localized XLF source strings for VS implementation. |
| src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/xlf/VsResources.es.xlf | Updates localized XLF source strings for VS implementation. |
| src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/xlf/VsResources.fr.xlf | Updates localized XLF source strings for VS implementation. |
| src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/xlf/VsResources.it.xlf | Updates localized XLF source strings for VS implementation. |
| src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/xlf/VsResources.ja.xlf | Updates localized XLF source strings for VS implementation. |
| src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/xlf/VsResources.ko.xlf | Updates localized XLF source strings for VS implementation. |
| src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/xlf/VsResources.pl.xlf | Updates localized XLF source strings for VS implementation. |
| src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/xlf/VsResources.pt-BR.xlf | Updates localized XLF source strings for VS implementation. |
| src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/xlf/VsResources.ru.xlf | Updates localized XLF source strings for VS implementation. |
| src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/xlf/VsResources.tr.xlf | Updates localized XLF source strings for VS implementation. |
| src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/xlf/VsResources.zh-Hans.xlf | Updates localized XLF source strings for VS implementation. |
| src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/xlf/VsResources.zh-Hant.xlf | Updates localized XLF source strings for VS implementation. |
| src/NuGet.Clients/NuGet.Tools/Resources.resx | Removes “please” from NuGet.Tools resource strings. |
| src/NuGet.Clients/NuGet.Tools/Resources.Designer.cs | Updates generated doc comments to match NuGet.Tools .resx. |
| src/NuGet.Clients/NuGet.Tools/xlf/Resources.cs.xlf | Updates localized XLF source strings for NuGet.Tools. |
| src/NuGet.Clients/NuGet.Tools/xlf/Resources.de.xlf | Updates localized XLF source strings for NuGet.Tools. |
| src/NuGet.Clients/NuGet.Tools/xlf/Resources.es.xlf | Updates localized XLF source strings for NuGet.Tools. |
| src/NuGet.Clients/NuGet.Tools/xlf/Resources.fr.xlf | Updates localized XLF source strings for NuGet.Tools. |
| src/NuGet.Clients/NuGet.Tools/xlf/Resources.it.xlf | Updates localized XLF source strings for NuGet.Tools. |
| src/NuGet.Clients/NuGet.Tools/xlf/Resources.ja.xlf | Updates localized XLF source strings for NuGet.Tools. |
| src/NuGet.Clients/NuGet.Tools/xlf/Resources.ko.xlf | Updates localized XLF source strings for NuGet.Tools. |
| src/NuGet.Clients/NuGet.Tools/xlf/Resources.pl.xlf | Updates localized XLF source strings for NuGet.Tools. |
| src/NuGet.Clients/NuGet.Tools/xlf/Resources.pt-BR.xlf | Updates localized XLF source strings for NuGet.Tools. |
| src/NuGet.Clients/NuGet.Tools/xlf/Resources.ru.xlf | Updates localized XLF source strings for NuGet.Tools. |
| src/NuGet.Clients/NuGet.Tools/xlf/Resources.tr.xlf | Updates localized XLF source strings for NuGet.Tools. |
| src/NuGet.Clients/NuGet.Tools/xlf/Resources.zh-Hans.xlf | Updates localized XLF source strings for NuGet.Tools. |
| src/NuGet.Clients/NuGet.Tools/xlf/Resources.zh-Hant.xlf | Updates localized XLF source strings for NuGet.Tools. |
| src/NuGet.Clients/NuGet.SolutionRestoreManager/Resources.resx | Removes “please” from restore manager resource strings. |
| src/NuGet.Clients/NuGet.SolutionRestoreManager/Resources.Designer.cs | Updates generated doc comments to match restore manager .resx. |
| src/NuGet.Clients/NuGet.SolutionRestoreManager/xlf/Resources.cs.xlf | Updates localized XLF source strings for restore manager. |
| src/NuGet.Clients/NuGet.SolutionRestoreManager/xlf/Resources.de.xlf | Updates localized XLF source strings for restore manager. |
| src/NuGet.Clients/NuGet.SolutionRestoreManager/xlf/Resources.es.xlf | Updates localized XLF source strings for restore manager. |
| src/NuGet.Clients/NuGet.SolutionRestoreManager/xlf/Resources.fr.xlf | Updates localized XLF source strings for restore manager. |
| src/NuGet.Clients/NuGet.SolutionRestoreManager/xlf/Resources.it.xlf | Updates localized XLF source strings for restore manager. |
| src/NuGet.Clients/NuGet.SolutionRestoreManager/xlf/Resources.ja.xlf | Updates localized XLF source strings for restore manager. |
| src/NuGet.Clients/NuGet.SolutionRestoreManager/xlf/Resources.ko.xlf | Updates localized XLF source strings for restore manager. |
| src/NuGet.Clients/NuGet.SolutionRestoreManager/xlf/Resources.pl.xlf | Updates localized XLF source strings for restore manager. |
| src/NuGet.Clients/NuGet.SolutionRestoreManager/xlf/Resources.pt-BR.xlf | Updates localized XLF source strings for restore manager. |
| src/NuGet.Clients/NuGet.SolutionRestoreManager/xlf/Resources.ru.xlf | Updates localized XLF source strings for restore manager. |
| src/NuGet.Clients/NuGet.SolutionRestoreManager/xlf/Resources.tr.xlf | Updates localized XLF source strings for restore manager. |
| src/NuGet.Clients/NuGet.SolutionRestoreManager/xlf/Resources.zh-Hans.xlf | Updates localized XLF source strings for restore manager. |
| src/NuGet.Clients/NuGet.SolutionRestoreManager/xlf/Resources.zh-Hant.xlf | Updates localized XLF source strings for restore manager. |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Strings.resx | Removes “please” from PM VS resource strings. |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Strings.Designer.cs | Updates generated doc comments to match PM VS .resx. |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/xlf/Strings.cs.xlf | Updates localized XLF source strings for PM VS. |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/xlf/Strings.de.xlf | Updates localized XLF source strings for PM VS. |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/xlf/Strings.es.xlf | Updates localized XLF source strings for PM VS. |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/xlf/Strings.fr.xlf | Updates localized XLF source strings for PM VS. |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/xlf/Strings.it.xlf | Updates localized XLF source strings for PM VS. |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/xlf/Strings.ja.xlf | Updates localized XLF source strings for PM VS. |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/xlf/Strings.ko.xlf | Updates localized XLF source strings for PM VS. |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/xlf/Strings.pl.xlf | Updates localized XLF source strings for PM VS. |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/xlf/Strings.pt-BR.xlf | Updates localized XLF source strings for PM VS. |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/xlf/Strings.ru.xlf | Updates localized XLF source strings for PM VS. |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/xlf/Strings.tr.xlf | Updates localized XLF source strings for PM VS. |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/xlf/Strings.zh-Hans.xlf | Updates localized XLF source strings for PM VS. |
| src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/xlf/Strings.zh-Hant.xlf | Updates localized XLF source strings for PM VS. |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Resources.resx | Removes “please” from PM UI resource strings. |
| src/NuGet.Clients/NuGet.PackageManagement.UI/Resources.Designer.cs | Updates generated doc comments to match PM UI .resx. |
| src/NuGet.Clients/NuGet.PackageManagement.UI/xlf/Resources.zh-Hans.xlf | Updates localized XLF source strings for PM UI (zh-Hans excerpt). |
| src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/Resources.resx | Removes “please” from PowerShell cmdlets resource strings. |
| src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/Resources.Designer.cs | Updates generated doc comments to match PowerShell cmdlets .resx. |
| src/NuGet.Clients/NuGet.MSSigning.Extensions/NuGetMSSignCommand.resx | Removes “please” from MSSigning command resource strings. |
| src/NuGet.Clients/NuGet.MSSigning.Extensions/NuGetMSSignCommand.Designer.cs | Updates generated doc comments to match MSSigning .resx. |
| src/NuGet.Clients/NuGet.MSSigning.Extensions/xlf/NuGetMSSignCommand.cs.xlf | Updates localized XLF source strings for MSSigning command. |
| src/NuGet.Clients/NuGet.MSSigning.Extensions/xlf/NuGetMSSignCommand.de.xlf | Updates localized XLF source strings for MSSigning command. |
| src/NuGet.Clients/NuGet.MSSigning.Extensions/xlf/NuGetMSSignCommand.es.xlf | Updates localized XLF source strings for MSSigning command. |
| src/NuGet.Clients/NuGet.MSSigning.Extensions/xlf/NuGetMSSignCommand.fr.xlf | Updates localized XLF source strings for MSSigning command. |
| src/NuGet.Clients/NuGet.MSSigning.Extensions/xlf/NuGetMSSignCommand.it.xlf | Updates localized XLF source strings for MSSigning command. |
| src/NuGet.Clients/NuGet.MSSigning.Extensions/xlf/NuGetMSSignCommand.ja.xlf | Updates localized XLF source strings for MSSigning command. |
| src/NuGet.Clients/NuGet.MSSigning.Extensions/xlf/NuGetMSSignCommand.ko.xlf | Updates localized XLF source strings for MSSigning command. |
| src/NuGet.Clients/NuGet.MSSigning.Extensions/xlf/NuGetMSSignCommand.pl.xlf | Updates localized XLF source strings for MSSigning command. |
| src/NuGet.Clients/NuGet.MSSigning.Extensions/xlf/NuGetMSSignCommand.pt-BR.xlf | Updates localized XLF source strings for MSSigning command. |
| src/NuGet.Clients/NuGet.MSSigning.Extensions/xlf/NuGetMSSignCommand.ru.xlf | Updates localized XLF source strings for MSSigning command. |
| src/NuGet.Clients/NuGet.MSSigning.Extensions/xlf/NuGetMSSignCommand.tr.xlf | Updates localized XLF source strings for MSSigning command. |
| src/NuGet.Clients/NuGet.MSSigning.Extensions/xlf/NuGetMSSignCommand.zh-Hans.xlf | Updates localized XLF source strings for MSSigning command. |
| src/NuGet.Clients/NuGet.MSSigning.Extensions/xlf/NuGetMSSignCommand.zh-Hant.xlf | Updates localized XLF source strings for MSSigning command. |
Files not reviewed (18)
- src/NuGet.Clients/NuGet.CommandLine/NuGetCommand.Designer.cs: Generated file
- src/NuGet.Clients/NuGet.CommandLine/NuGetResources.Designer.cs: Generated file
- src/NuGet.Clients/NuGet.MSSigning.Extensions/NuGetMSSignCommand.Designer.cs: Generated file
- src/NuGet.Clients/NuGet.PackageManagement.PowerShellCmdlets/Resources.Designer.cs: Generated file
- src/NuGet.Clients/NuGet.PackageManagement.UI/Resources.Designer.cs: Generated file
- src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Strings.Designer.cs: Generated file
- src/NuGet.Clients/NuGet.SolutionRestoreManager/Resources.Designer.cs: Generated file
- src/NuGet.Clients/NuGet.Tools/Resources.Designer.cs: Generated file
- src/NuGet.Clients/NuGet.VisualStudio.Implementation/Resources/VsResources.Designer.cs: Generated file
- src/NuGet.Core/NuGet.Build.Tasks/Strings.Designer.cs: Generated file
- src/NuGet.Core/NuGet.CommandLine.XPlat/Strings.Designer.cs: Generated file
- src/NuGet.Core/NuGet.Commands/Strings.Designer.cs: Generated file
- src/NuGet.Core/NuGet.Configuration/Resources.Designer.cs: Generated file
- src/NuGet.Core/NuGet.Credentials/Resources.Designer.cs: Generated file
- src/NuGet.Core/NuGet.PackageManagement/Strings.Designer.cs: Generated file
- src/NuGet.Core/NuGet.Packaging/PackageCreation/Resources/NuGetResources.Designer.cs: Generated file
- src/NuGet.Core/NuGet.Packaging/Rules/AnalysisResources.Designer.cs: Generated file
- src/NuGet.Core/NuGet.Packaging/Strings.Designer.cs: Generated file
Nigusu-Allehu
left a comment
There was a problem hiding this comment.
LGTM. CP has a few suggestions worth considering
…icle and preposition
donnie-msft
left a comment
There was a problem hiding this comment.
Looks good!
This PR seems to make our messages clearer and not just remove "Please", which is great.
FWIW, I don't think we had to update CLI, as I seem to recall this being VS specific guidance.
|
@donnie-msft The guidance is MS/Windows specific, https://learn.microsoft.com/en-us/windows/win32/debug/error-message-guidelines, but I think it applies to all |
Fixes: NuGet/Home#8141
Per Microsoft error message guidelines, "please" implies required actions are optional. Removes ~80 instances from user-facing error messages across the codebase.
Changes
.resxfiles: Removed "please" from<value>elements, rewording to direct imperatives.Designer.csfiles: Updated auto-generated string literals to match.xlffiles: Updated source strings across all 13 localized languagesKept "please" where tooling is at fault
Messages like
"Please file an issue at https://github.com/NuGet/Home"and"Please contact the package owners"are retained — these are apologies for NuGet/package bugs, not user directives.Excluded from this PR
Copilot-specific error messages in
NuGet.Tools/Resources.resx(Error_CopilotNotReady,Error_ServiceBrokerNotAvailable,Error_CopilotServiceNotAvailable,Error_McpToolServiceNotAvailable,Error_CopilotAccessDenied,Error_NuGetSolverNotAvailable) are intentionally left unchanged to avoid overlap with another PR.Incidental fixes
"enbale"→"Enable"in long path support message"write format"→"correct format"in assets file error"See the Error List window"Before/After