@samitouri / QOSAMI-WSL / commits / 20df81ae

Fix typos in user-facing strings: 'chose' -> 'choose' (#40411)

* Fix typos in localization: 'chose' -> 'choose' Two user-facing strings used 'chose' (past tense) instead of 'choose' (present tense / imperative): - MessageDistroNameAlreadyExists - MessageDistributionNameNeeded These are shipped to users in error messages. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Update UnitTests expected output for chose -> choose typo fix Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Ben Hillis <benhillis@microsoft.com>

Ben Hillis committed May 5, 2026 at 15:03 UTC 20df81ae7b846b35c49426c2e9c53f02ec2bca0a
2 files changed +4 -4
localization/strings/en-US/Resources.resw
+2 -2
@@ -169,7 +169,7 @@ Install using 'wsl.exe {} &lt;Distro&gt;'.
169 <value>The supplied install location is already in use.</value>
170 </data>
171 <data name="MessageDistroNameAlreadyExists" xml:space="preserve">
172 - <value>A distribution with the supplied name already exists. Use --name to chose a different name.</value>
172 + <value>A distribution with the supplied name already exists. Use --name to choose a different name.</value>
173 <comment>{Locked="--name "}Command line arguments, file names and string inserts should not be translated</comment>
174 </data>
175 <data name="MessageDistroNotFound" xml:space="preserve">
@@ -805,7 +805,7 @@ For more information on Admin Protection, please visit https://aka.ms/apdevguide
805 <value>Open EventViewer</value>
806 </data>
807 <data name="MessageDistributionNameNeeded" xml:space="preserve">
808 - <value>This distribution doesn't contain a default name. Use --name to chose the distribution name.</value>
808 + <value>This distribution doesn't contain a default name. Use --name to choose the distribution name.</value>
809 <comment>{Locked="--name "}Command line arguments, file names and string inserts should not be translated</comment>
810 </data>
811 <data name="MessageArgumentsNotValidTogether" xml:space="preserve">
test/windows/UnitTests.cpp
+2 -2
@@ -4401,7 +4401,7 @@ VERSION_ID="Invalid|Format"
4401 // Import should fail without --name
4402 constexpr auto expectedOutput =
4403 L"Installing: distro-no-default-name.tar\r\n\
4404 -This distribution doesn't contain a default name. Use --name to chose the distribution name.\r\n\
4404 +This distribution doesn't contain a default name. Use --name to choose the distribution name.\r\n\
4405 Error code: Wsl/Service/RegisterDistro/WSL_E_DISTRIBUTION_NAME_NEEDED\r\n";
4406
4407 InstallFromTar(L"distro-no-default-name.tar", L"", -1, expectedOutput);
@@ -4660,7 +4660,7 @@ Error code: Wsl/Service/RegisterDistro/WSL_E_DISTRIBUTION_NAME_NEEDED\r\n";
4660
4661 constexpr auto expectedOutput =
4662 L"Installing: conflict.tar\r\n\
4663 -A distribution with the supplied name already exists. Use --name to chose a different name.\r\n\
4663 +A distribution with the supplied name already exists. Use --name to choose a different name.\r\n\
4664 Error code: Wsl/Service/RegisterDistro/ERROR_ALREADY_EXISTS\r\n";
4665
4666 InstallFromTar(L"conflict.tar", L"", -1, expectedOutput);