mirror of
https://github.com/microsoft/WSL.git
synced 2025-07-03 07:23:20 +00:00
Spelling localizations (#12957)
This commit is contained in:
parent
be5b31305f
commit
83d14de518
5 changed files with 11 additions and 11 deletions
|
@ -181,7 +181,7 @@ Install using 'wsl.exe {} <Distro>'.
|
|||
<data name="MessageExportFailed" xml:space="preserve">
|
||||
<value>Exporting the distribution failed.</value>
|
||||
</data>
|
||||
<data name="MessageFsUpdgadeNeeded" xml:space="preserve">
|
||||
<data name="MessageFsUpgradeNeeded" xml:space="preserve">
|
||||
<value>Performing one-time upgrade of the Windows Subsystem for Linux file system for this distribution...</value>
|
||||
</data>
|
||||
<data name="MessageHigherIntegrity" xml:space="preserve">
|
||||
|
@ -813,7 +813,7 @@ For information please visit https://aka.ms/wslinstall</value>
|
|||
<value>Legacy distribution registrations do not support the --version argument.</value>
|
||||
<comment>{Locked="--version "}Command line arguments, file names and string inserts should not be translated</comment>
|
||||
</data>
|
||||
<data name="MessageDistributionOverriden" xml:space="preserve">
|
||||
<data name="MessageDistributionOverridden" xml:space="preserve">
|
||||
<value>The distribution "{}" is provided by an override manifest.</value>
|
||||
<comment>{FixedPlaceholder="{}"}Command line arguments, file names and string inserts should not be translated</comment>
|
||||
</data>
|
||||
|
@ -923,7 +923,7 @@ Falling back to NAT networking.</value>
|
|||
<value>The plugin '{}' requires a newer version of WSL. Please run: wsl.exe --update</value>
|
||||
<comment>{FixedPlaceholder="{}"}{Locked="--update"}Command line arguments, file names and string inserts should not be translated</comment>
|
||||
</data>
|
||||
<data name="MessageSettingOverridenByPolicy" xml:space="preserve">
|
||||
<data name="MessageSettingOverriddenByPolicy" xml:space="preserve">
|
||||
<value>The .wslconfig setting '{}' is disabled by the computer policy.</value>
|
||||
<comment>{FixedPlaceholder="{}"}{Locked=".wslconfig"}Command line arguments, file names and string inserts should not be translated</comment>
|
||||
</data>
|
||||
|
@ -1212,7 +1212,7 @@ See recovery instructions on: https://aka.ms/wsldiskmountrecovery</value>
|
|||
</data>
|
||||
<data name="Settings_CustomSystemDistroPathDescription.Text" xml:space="preserve">
|
||||
<value>Specify a path to a VHD which will load as a custom system distro, primarily used to power GUI apps in WSL. [Learn more about system distros here].</value>
|
||||
<comment>{Locked="["}{Locked="]"}The text in between the delimiters [ ] is made into an hyperlink in code, and the delimiters are removed</comment>
|
||||
<comment>{Locked="["}{Locked="]"}The text in between the delimiters [ ] is made into a hyperlink in code, and the delimiters are removed</comment>
|
||||
</data>
|
||||
<data name="Settings_CustomSystemDistroPathDescription.NavigateUri" xml:space="preserve">
|
||||
<value>https://aka.ms/wslgsystemdistro</value>
|
||||
|
|
|
@ -247,7 +247,7 @@ std::variant<Distribution, ModernDistributionVersion> wsl::windows::common::dist
|
|||
auto distribution = LookupDistributionInManifest(manifest.OverrideManifest.value(), name, legacy);
|
||||
if (distribution.has_value())
|
||||
{
|
||||
EMIT_USER_WARNING(wsl::shared::Localization::MessageDistributionOverriden(name));
|
||||
EMIT_USER_WARNING(wsl::shared::Localization::MessageDistributionOverridden(name));
|
||||
return distribution.value();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -695,7 +695,7 @@ int LaunchProcess(_In_opt_ LPCWSTR filename, _In_ int argc, _In_reads_(argc) LPC
|
|||
{
|
||||
if (result == WSL_E_FS_UPGRADE_NEEDED)
|
||||
{
|
||||
wsl::windows::common::wslutil::PrintMessage(wsl::shared::Localization::MessageFsUpdgadeNeeded(), stderr);
|
||||
wsl::windows::common::wslutil::PrintMessage(wsl::shared::Localization::MessageFsUpgradeNeeded(), stderr);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -329,7 +329,7 @@ void wsl::core::Config::Initialize(_In_opt_ HANDLE UserToken)
|
|||
if (value != std::remove_reference_t<decltype(value)>{} && !wsl::windows::policies::IsFeatureAllowed(key.get(), ValueName))
|
||||
{
|
||||
value = std::remove_reference_t<decltype(value)>{};
|
||||
EMIT_USER_WARNING(wsl::shared::Localization::MessageSettingOverridenByPolicy(SettingName));
|
||||
EMIT_USER_WARNING(wsl::shared::Localization::MessageSettingOverriddenByPolicy(SettingName));
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -376,7 +376,7 @@ void wsl::core::Config::Initialize(_In_opt_ HANDLE UserToken)
|
|||
(NetworkingMode != wsl::core::NetworkingMode::None) && (NetworkingMode != defaultNetworkingMode))
|
||||
{
|
||||
NetworkingMode = defaultNetworkingMode;
|
||||
EMIT_USER_WARNING(wsl::shared::Localization::MessageSettingOverridenByPolicy(L"wsl2.networkingMode"));
|
||||
EMIT_USER_WARNING(wsl::shared::Localization::MessageSettingOverriddenByPolicy(L"wsl2.networkingMode"));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -391,7 +391,7 @@ void wsl::core::Config::Initialize(_In_opt_ HANDLE UserToken)
|
|||
!wsl::windows::policies::IsFeatureAllowed(key.get(), wsl::windows::policies::c_allowCustomFirewallUserSetting))
|
||||
{
|
||||
FirewallConfig.Enable();
|
||||
EMIT_USER_WARNING(wsl::shared::Localization::MessageSettingOverridenByPolicy(L"wsl2.firewall"));
|
||||
EMIT_USER_WARNING(wsl::shared::Localization::MessageSettingOverriddenByPolicy(L"wsl2.firewall"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -201,9 +201,9 @@ class PolicyTest
|
|||
WslShutdown();
|
||||
|
||||
const auto kernelWarning =
|
||||
std::format(L"wsl: {}\r\n", wsl::shared::Localization::MessageSettingOverridenByPolicy(L"wsl2.kernel"));
|
||||
std::format(L"wsl: {}\r\n", wsl::shared::Localization::MessageSettingOverriddenByPolicy(L"wsl2.kernel"));
|
||||
const auto modulesWarning =
|
||||
std::format(L"wsl: {}\r\n", wsl::shared::Localization::MessageSettingOverridenByPolicy(L"wsl2.kernelModules"));
|
||||
std::format(L"wsl: {}\r\n", wsl::shared::Localization::MessageSettingOverriddenByPolicy(L"wsl2.kernelModules"));
|
||||
|
||||
ValidateWarnings(std::format(L"{}{}", kernelWarning, modulesWarning));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue