Skip to content

Commit 2955189

Browse files
moooyoYu Leng (from Dev Box)
and
Yu Leng (from Dev Box)
authored
[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) <[email protected]>
1 parent 048b07c commit 2955189

File tree

9 files changed

+36
-9
lines changed

9 files changed

+36
-9
lines changed

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.Registry/Properties/Resources.Designer.cs

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.Registry/Properties/Resources.resx

+3
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,7 @@
185185
<data name="Registry_Key_Not_Found" xml:space="preserve">
186186
<value>Registry key not found</value>
187187
</data>
188+
<data name="RegistryProvider_DisplayName" xml:space="preserve">
189+
<value>Windows Registry</value>
190+
</data>
188191
</root>

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.Registry/RegistryCommandsProvider.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// The Microsoft Corporation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
using Microsoft.CmdPal.Ext.Registry.Properties;
56
using Microsoft.CommandPalette.Extensions;
67
using Microsoft.CommandPalette.Extensions.Toolkit;
78

@@ -12,7 +13,7 @@ public partial class RegistryCommandsProvider : CommandProvider
1213
public RegistryCommandsProvider()
1314
{
1415
Id = "Windows.Registry";
15-
DisplayName = $"Windows Registry";
16+
DisplayName = Resources.RegistryProvider_DisplayName;
1617
Icon = IconHelpers.FromRelativePath("Assets\\Registry.svg");
1718
}
1819

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.WindowsServices/Properties/Resources.Designer.cs

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.WindowsServices/Properties/Resources.resx

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@
117117
<resheader name="writer">
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120+
<data name="WindowsServicesProvider_DisplayName" xml:space="preserve">
121+
<value>Windows Services</value>
122+
</data>
120123
<data name="wox_plugin_service_continue_pending" xml:space="preserve">
121124
<value>Continue</value>
122125
</data>
@@ -204,7 +207,4 @@
204207
<data name="wox_plugin_service_stop_pending" xml:space="preserve">
205208
<value>Stopping</value>
206209
</data>
207-
<data name="test_value" xml:space="preserve">
208-
<value />
209-
</data>
210210
</root>

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.WindowsServices/WindowsServicesCommandsProvider.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// The Microsoft Corporation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
using Microsoft.CmdPal.Ext.WindowsServices.Properties;
56
using Microsoft.CommandPalette.Extensions;
67
using Microsoft.CommandPalette.Extensions.Toolkit;
78

@@ -15,7 +16,7 @@ public partial class WindowsServicesCommandsProvider : CommandProvider
1516
public WindowsServicesCommandsProvider()
1617
{
1718
Id = "Windows.Services";
18-
DisplayName = $"Windows Services";
19+
DisplayName = Resources.WindowsServicesProvider_DisplayName;
1920
Icon = ServicesIcon;
2021
}
2122

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.WindowsSettings/Properties/Resources.Designer.cs

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.WindowsSettings/Properties/Resources.resx

+3
Original file line numberDiff line numberDiff line change
@@ -2082,4 +2082,7 @@
20822082
<data name="OpenSettings" xml:space="preserve">
20832083
<value>Open Settings</value>
20842084
</data>
2085+
<data name="WindowsSettingsProvider_DisplayName" xml:space="preserve">
2086+
<value>Windows Settings</value>
2087+
</data>
20852088
</root>

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.WindowsSettings/WindowsSettingsCommandsProvider.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44

55
using Microsoft.CmdPal.Ext.WindowsSettings.Helpers;
6+
using Microsoft.CmdPal.Ext.WindowsSettings.Properties;
67
using Microsoft.CommandPalette.Extensions;
78
using Microsoft.CommandPalette.Extensions.Toolkit;
89

@@ -19,7 +20,7 @@ public partial class WindowsSettingsCommandsProvider : CommandProvider
1920
public WindowsSettingsCommandsProvider()
2021
{
2122
Id = "Windows.Settings";
22-
DisplayName = $"Windows Settings";
23+
DisplayName = Resources.WindowsSettingsProvider_DisplayName;
2324
Icon = IconHelpers.FromRelativePath("Assets\\WindowsSettings.svg");
2425

2526
_windowsSettings = JsonSettingsListHelper.ReadAllPossibleSettings();

0 commit comments

Comments
 (0)