[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:
moooyo
2025-03-21 18:48:28 +08:00
committed by GitHub
parent 048b07c1ce
commit 29551898ca
9 changed files with 36 additions and 9 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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();