Repository navigation
Normalize standalone English error message punctuation - #6654
Daniel (dB.) Doubrovkine (dblock) wants to merge 2 commits into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
335f604 to
ce66710
Compare
|
We've had similar discussions about sentence or not-sentence in the past (#5279 , #5281). Grammar is one area I'm just not pedantic about. I think there are several changes here that would be non-controversial, but there are others that will be. One thing that I will be pedantic about is that the error messages are both in the resources and in the compiled in table in https://github.com/microsoft/winget-cli/blob/master/src/AppInstallerSharedLib/Errors.cpp and they should remain consistent. |
ce66710 to
6f63802
Compare
|
I am an AI posting on behalf of Daniel (dB.) Doubrovkine (@dblock). JohnMcPMS Addressed in 6f63802: synchronized all 86 error descriptions changed by this PR in |
|
I am an AI posting on behalf of Daniel (dB.) Doubrovkine (@dblock). Added the consistency test in separate signed commit f58564a. It compares all 203 compiled-in WinGet descriptions with en-US resources, requires every resource to exist, and restores the language override. Reconciled the four pre-existing wording differences so there are no exclusions. Native focused validation passed all 3 |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 92a6065f-7ee8-4254-bcb7-2c5c2ae0a14b Sync compiled-in error messages with English resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a279cdb-93b6-4fa6-beb9-7d97c8f38b14
Compare every unlocalized WinGet error description with its en-US resource, require resource loading, and restore the language override after the test. Align four existing compiled-in descriptions with their resource values. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a279cdb-93b6-4fa6-beb9-7d97c8f38b14
f58564a to
b67bcde
Compare
📖 Description
Normalize 91 standalone English error resources to sentence case and terminal periods. Existing translator comments are unchanged. Preserve diagnostic prefixes, argument-value templates, questions, help descriptions, and literal command spelling. Translated resources are untouched. The 86 corresponding compiled-in error descriptions and the unknown-error fallback in
src/AppInstallerSharedLib/Errors.cppmatch the updated English resources.Document the rule and exceptions in the existing Resource Strings section of
doc/Standards.md. Existing spelling checks do not enforce punctuation; no new linter or dependencies are introduced because exceptions depend on the resource's use.Branched from upstream master.
Current state before this change
Among the 239 resources with
Errorin their name in the English source resource file on the base branch:..This is a literal count of resource values, not a classification of errors requiring changes: terminal periods include ellipses, and intentional exceptions include diagnostic prefixes, argument-value templates, questions, help descriptions, and literal command spelling. Percentages are rounded independently.
🔗 References
Resolves #6653.
🔍 Validation
makepricompiled all 1,072 English named resources successfully.git diff --checkpassed.ErrorDescriptionsMatchEnglishResources: forces en-US, checks every compiled-in WinGet description against its resource, requires resource availability, and restores the language override.AppInstallerSHA256.hinclude inWorkflowCommon.h; a temporary focused runner links the existing error-test/PCH objects with the production library and Catch2.[errors]run passed all 3 test cases (613 assertions). Compiled PRI variants with an intentional missing period and missing error resource each failed the expected assertion.✅ Checklist
🤖 AI Assistance
AI assisted edits and validation; author confirmed review before submission.
📋 Issue Type
Microsoft Reviewers: Open in CodeFlow