mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
[cmdpal] Fix some i18n issues for built-in extensions (#38078)
Fix some i18n issues for built-in extensions. Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
This commit is contained in:
@@ -177,6 +177,15 @@ namespace Microsoft.CmdPal.Ext.Registry.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Windows Registry.
|
||||
/// </summary>
|
||||
internal static string RegistryProvider_DisplayName {
|
||||
get {
|
||||
return ResourceManager.GetString("RegistryProvider_DisplayName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Registry value.
|
||||
/// </summary>
|
||||
|
||||
@@ -185,4 +185,7 @@
|
||||
<data name="Registry_Key_Not_Found" xml:space="preserve">
|
||||
<value>Registry key not found</value>
|
||||
</data>
|
||||
<data name="RegistryProvider_DisplayName" xml:space="preserve">
|
||||
<value>Windows Registry</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -2,6 +2,7 @@
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using Microsoft.CmdPal.Ext.Registry.Properties;
|
||||
using Microsoft.CommandPalette.Extensions;
|
||||
using Microsoft.CommandPalette.Extensions.Toolkit;
|
||||
|
||||
@@ -12,7 +13,7 @@ public partial class RegistryCommandsProvider : CommandProvider
|
||||
public RegistryCommandsProvider()
|
||||
{
|
||||
Id = "Windows.Registry";
|
||||
DisplayName = $"Windows Registry";
|
||||
DisplayName = Resources.RegistryProvider_DisplayName;
|
||||
Icon = IconHelpers.FromRelativePath("Assets\\Registry.svg");
|
||||
}
|
||||
|
||||
|
||||
@@ -61,11 +61,11 @@ namespace Microsoft.CmdPal.Ext.WindowsServices.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to .
|
||||
/// Looks up a localized string similar to Windows Services.
|
||||
/// </summary>
|
||||
internal static string test_value {
|
||||
internal static string WindowsServicesProvider_DisplayName {
|
||||
get {
|
||||
return ResourceManager.GetString("test_value", resourceCulture);
|
||||
return ResourceManager.GetString("WindowsServicesProvider_DisplayName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -117,6 +117,9 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="WindowsServicesProvider_DisplayName" xml:space="preserve">
|
||||
<value>Windows Services</value>
|
||||
</data>
|
||||
<data name="wox_plugin_service_continue_pending" xml:space="preserve">
|
||||
<value>Continue</value>
|
||||
</data>
|
||||
@@ -204,7 +207,4 @@
|
||||
<data name="wox_plugin_service_stop_pending" xml:space="preserve">
|
||||
<value>Stopping</value>
|
||||
</data>
|
||||
<data name="test_value" xml:space="preserve">
|
||||
<value />
|
||||
</data>
|
||||
</root>
|
||||
@@ -2,6 +2,7 @@
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using Microsoft.CmdPal.Ext.WindowsServices.Properties;
|
||||
using Microsoft.CommandPalette.Extensions;
|
||||
using Microsoft.CommandPalette.Extensions.Toolkit;
|
||||
|
||||
@@ -15,7 +16,7 @@ public partial class WindowsServicesCommandsProvider : CommandProvider
|
||||
public WindowsServicesCommandsProvider()
|
||||
{
|
||||
Id = "Windows.Services";
|
||||
DisplayName = $"Windows Services";
|
||||
DisplayName = Resources.WindowsServicesProvider_DisplayName;
|
||||
Icon = ServicesIcon;
|
||||
}
|
||||
|
||||
|
||||
@@ -4731,6 +4731,15 @@ namespace Microsoft.CmdPal.Ext.WindowsSettings.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Windows Settings.
|
||||
/// </summary>
|
||||
internal static string WindowsSettingsProvider_DisplayName {
|
||||
get {
|
||||
return ResourceManager.GetString("WindowsSettingsProvider_DisplayName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Windows Update.
|
||||
/// </summary>
|
||||
|
||||
@@ -2082,4 +2082,7 @@
|
||||
<data name="OpenSettings" xml:space="preserve">
|
||||
<value>Open Settings</value>
|
||||
</data>
|
||||
<data name="WindowsSettingsProvider_DisplayName" xml:space="preserve">
|
||||
<value>Windows Settings</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -3,6 +3,7 @@
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using Microsoft.CmdPal.Ext.WindowsSettings.Helpers;
|
||||
using Microsoft.CmdPal.Ext.WindowsSettings.Properties;
|
||||
using Microsoft.CommandPalette.Extensions;
|
||||
using Microsoft.CommandPalette.Extensions.Toolkit;
|
||||
|
||||
@@ -19,7 +20,7 @@ public partial class WindowsSettingsCommandsProvider : CommandProvider
|
||||
public WindowsSettingsCommandsProvider()
|
||||
{
|
||||
Id = "Windows.Settings";
|
||||
DisplayName = $"Windows Settings";
|
||||
DisplayName = Resources.WindowsSettingsProvider_DisplayName;
|
||||
Icon = IconHelpers.FromRelativePath("Assets\\WindowsSettings.svg");
|
||||
|
||||
_windowsSettings = JsonSettingsListHelper.ReadAllPossibleSettings();
|
||||
|
||||
Reference in New Issue
Block a user