fix: correct sparse VHD command to include true (#13512)

* fix: correct sparse VHD command to include `true`

* Revert all localization strings to f8c26f7c3 except en-US/Resources.resw

* fix: run validate-localization.py with --fix option
This commit is contained in:
Junhao Liao 2025-10-01 19:49:49 -04:00 committed by GitHub
parent e0c6196cd5
commit 98f4960118
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -1108,7 +1108,7 @@ Error code: {}</value>
<data name="MessageSparseVhdDisabled" xml:space="preserve">
<value>Sparse VHD support is currently disabled due to potential data corruption.
To force a distribution to use a sparse vhd, please run:
wsl.exe --manage &lt;DistributionName&gt; --set-sparse --allow-unsafe</value>
wsl.exe --manage &lt;DistributionName&gt; --set-sparse true --allow-unsafe</value>
<comment>{Locked="--manage "}{Locked="--set-sparse "}{Locked="--allow-unsafe"}Command line arguments, file names and string inserts should not be translated</comment>
</data>
<data name="MessageDrvfsMountFailed" xml:space="preserve">

View File

@ -110,7 +110,7 @@ class SimpleTests
L"The operation completed successfully. \r\n",
L"wsl: Sparse VHD support is currently disabled due to potential data corruption.\r\n"
L"To force a distribution to use a sparse vhd, please run:\r\n"
L"wsl.exe --manage <DistributionName> --set-sparse --allow-unsafe\r\n",
L"wsl.exe --manage <DistributionName> --set-sparse true --allow-unsafe\r\n",
0);
std::filesystem::path vhdPath = vhdDir / LXSS_VM_MODE_VHD_NAME;
@ -123,7 +123,7 @@ class SimpleTests
std::format(L"{} {} {} {}", WSL_MANAGE_ARG, tempDistro, WSL_MANAGE_ARG_SET_SPARSE_OPTION_LONG, L"true").c_str(),
L"Sparse VHD support is currently disabled due to potential data corruption.\r\n"
L"To force a distribution to use a sparse vhd, please run:\r\n"
L"wsl.exe --manage <DistributionName> --set-sparse --allow-unsafe\r\nError code: Wsl/Service/E_INVALIDARG\r\n",
L"wsl.exe --manage <DistributionName> --set-sparse true --allow-unsafe\r\nError code: Wsl/Service/E_INVALIDARG\r\n",
L"",
-1);