[CmdPal] Minor string tweaks (#46040)

<!-- Enter a brief description/summary of your PR here. What does it
fix/what does it change/how was it tested (even manually, if necessary)?
-->
## Summary of the Pull Request

Before:
<img width="1198" height="718" alt="image"
src="https://github.com/user-attachments/assets/79a23cb3-93c6-4960-afc5-60c147f8ae92"
/>

After:
<img width="1175" height="716" alt="image"
src="https://github.com/user-attachments/assets/c4ea1e2d-ad47-4203-a77a-99f22bcfb448"
/>

<img width="630" height="434" alt="image"
src="https://github.com/user-attachments/assets/8ad1d424-2907-4599-965d-1193effaf7bd"
/>

<!-- Please review the items on the PR checklist before submitting-->
## PR Checklist

- [x] Closes: #38730 (a lot of the suggestions there were already
resolved.
<!-- - [ ] Closes: #yyy (add separate lines for additional resolved
issues) -->
- [ ] **Communication:** I've discussed this with core contributors
already. If the work hasn't been agreed, this work might be rejected
- [ ] **Tests:** Added/updated and all pass
- [ ] **Localization:** All end-user-facing strings can be localized
- [ ] **Dev docs:** Added/updated
- [ ] **New binaries:** Added on the required places
- [ ] [JSON for
signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json)
for new binaries
- [ ] [WXS for
installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs)
for new binaries and localization folder
- [ ] [YML for CI
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml)
for new test projects
- [ ] [YML for signed
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml)
- [ ] **Documentation updated:** If checked, please file a pull request
on [our docs
repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys)
and link it here: #xxx

<!-- Provide a more detailed description of the PR, other things fixed,
or any additional comments/features here -->
## Detailed Description of the Pull Request / Additional comments

<!-- Describe how you validated the behavior. Add automated tests
wherever possible, but list manual validation steps taken as well -->
## Validation Steps Performed

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: niels9001 <9866362+niels9001@users.noreply.github.com>
This commit is contained in:
Niels Laute
2026-03-10 19:47:38 +01:00
committed by GitHub
parent ed16ae7b2a
commit 35a3c55f29
9 changed files with 30 additions and 143 deletions

View File

@@ -151,7 +151,7 @@ namespace Microsoft.CmdPal.Ext.ClipboardHistory.Properties {
}
/// <summary>
/// Looks up a localized string similar to Clipboard History.
/// Looks up a localized string similar to Clipboard history.
/// </summary>
public static string list_item_title {
get {
@@ -439,7 +439,7 @@ namespace Microsoft.CmdPal.Ext.ClipboardHistory.Properties {
}
/// <summary>
/// Looks up a localized string similar to Clipboard History.
/// Looks up a localized string similar to Clipboard history.
/// </summary>
public static string provider_display_name {
get {

View File

@@ -130,13 +130,13 @@
<value>Copied to clipboard</value>
</data>
<data name="list_item_title" xml:space="preserve">
<value>Clipboard History</value>
<value>Clipboard history</value>
</data>
<data name="list_item_subtitle" xml:space="preserve">
<value>Copy, paste, and search items on the clipboard</value>
</data>
<data name="provider_display_name" xml:space="preserve">
<value>Clipboard History</value>
<value>Clipboard history</value>
</data>
<data name="clipboard_history_page_name" xml:space="preserve">
<value>Open</value>

View File

@@ -49,7 +49,6 @@ internal static class Commands
})
{
Title = Resources.Microsoft_plugin_sys_shutdown_computer,
Subtitle = Resources.Microsoft_plugin_sys_shutdown_computer_description,
Icon = Icons.ShutdownIcon,
},
new ListItem(
@@ -59,7 +58,6 @@ internal static class Commands
})
{
Title = Resources.Microsoft_plugin_sys_restart_computer,
Subtitle = Resources.Microsoft_plugin_sys_restart_computer_description,
Icon = Icons.RestartIcon,
},
new ListItem(
@@ -69,7 +67,6 @@ internal static class Commands
})
{
Title = Resources.Microsoft_plugin_sys_sign_out,
Subtitle = Resources.Microsoft_plugin_sys_sign_out_description,
Icon = Icons.LogoffIcon,
},
new ListItem(
@@ -79,7 +76,6 @@ internal static class Commands
})
{
Title = Resources.Microsoft_plugin_sys_lock,
Subtitle = Resources.Microsoft_plugin_sys_lock_description,
Icon = Icons.LockIcon,
},
new ListItem(
@@ -89,7 +85,6 @@ internal static class Commands
})
{
Title = Resources.Microsoft_plugin_sys_sleep,
Subtitle = Resources.Microsoft_plugin_sys_sleep_description,
Icon = Icons.SleepIcon,
},
new ListItem(
@@ -99,7 +94,6 @@ internal static class Commands
})
{
Title = Resources.Microsoft_plugin_sys_hibernate,
Subtitle = Resources.Microsoft_plugin_sys_hibernate_description,
Icon = Icons.SleepIcon, // Icon change needed
},
});
@@ -115,7 +109,6 @@ internal static class Commands
})
{
Title = Resources.Microsoft_plugin_sys_RecycleBinOpen,
Subtitle = Resources.Microsoft_plugin_sys_RecycleBin_description,
Icon = Icons.RecycleBinIcon,
},
new ListItem(new EmptyRecycleBinConfirmation(emptyRBSuccessMessage)
@@ -124,7 +117,6 @@ internal static class Commands
})
{
Title = Resources.Microsoft_plugin_sys_RecycleBinEmptyResult,
Subtitle = Resources.Microsoft_plugin_sys_RecycleBinEmpty_description,
Icon = Icons.RecycleBinIcon,
},
});
@@ -138,7 +130,6 @@ internal static class Commands
})
{
Title = Resources.Microsoft_plugin_sys_RecycleBin,
Subtitle = Resources.Microsoft_plugin_sys_RecycleBin_description,
Icon = Icons.RecycleBinIcon,
});
}

View File

@@ -19,7 +19,7 @@ namespace Microsoft.CmdPal.Ext.System {
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "18.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Resources {
@@ -187,7 +187,7 @@ namespace Microsoft.CmdPal.Ext.System {
}
/// <summary>
/// Looks up a localized string similar to Open system command.
/// Looks up a localized string similar to Execute system commands.
/// </summary>
public static string Microsoft_plugin_ext_fallback_display_title {
get {
@@ -313,7 +313,7 @@ namespace Microsoft.CmdPal.Ext.System {
}
/// <summary>
/// Looks up a localized string similar to Hibernate.
/// Looks up a localized string similar to Hibernate computer.
/// </summary>
public static string Microsoft_plugin_sys_hibernate {
get {
@@ -330,15 +330,6 @@ namespace Microsoft.CmdPal.Ext.System {
}
}
/// <summary>
/// Looks up a localized string similar to Hibernate computer.
/// </summary>
public static string Microsoft_plugin_sys_hibernate_description {
get {
return ResourceManager.GetString("Microsoft_plugin_sys_hibernate_description", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to IPv4 address of {0}.
/// </summary>
@@ -421,7 +412,7 @@ namespace Microsoft.CmdPal.Ext.System {
}
/// <summary>
/// Looks up a localized string similar to Lock.
/// Looks up a localized string similar to Lock computer.
/// </summary>
public static string Microsoft_plugin_sys_lock {
get {
@@ -438,15 +429,6 @@ namespace Microsoft.CmdPal.Ext.System {
}
}
/// <summary>
/// Looks up a localized string similar to Lock computer.
/// </summary>
public static string Microsoft_plugin_sys_lock_description {
get {
return ResourceManager.GetString("Microsoft_plugin_sys_lock_description", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Loopback.
/// </summary>
@@ -519,15 +501,6 @@ namespace Microsoft.CmdPal.Ext.System {
}
}
/// <summary>
/// Looks up a localized string similar to Open the Recycle Bin.
/// </summary>
public static string Microsoft_plugin_sys_RecycleBin_description {
get {
return ResourceManager.GetString("Microsoft_plugin_sys_RecycleBin_description", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Recycle Bin emptied successfully..
/// </summary>
@@ -591,15 +564,6 @@ namespace Microsoft.CmdPal.Ext.System {
}
}
/// <summary>
/// Looks up a localized string similar to Empty Recycle Bin.
/// </summary>
public static string Microsoft_plugin_sys_RecycleBinEmpty_description {
get {
return ResourceManager.GetString("Microsoft_plugin_sys_RecycleBinEmpty_description", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Empty Recycle Bin.
/// </summary>
@@ -619,7 +583,7 @@ namespace Microsoft.CmdPal.Ext.System {
}
/// <summary>
/// Looks up a localized string similar to Restart.
/// Looks up a localized string similar to Restart computer.
/// </summary>
public static string Microsoft_plugin_sys_restart_computer {
get {
@@ -636,15 +600,6 @@ namespace Microsoft.CmdPal.Ext.System {
}
}
/// <summary>
/// Looks up a localized string similar to Restart computer.
/// </summary>
public static string Microsoft_plugin_sys_restart_computer_description {
get {
return ResourceManager.GetString("Microsoft_plugin_sys_restart_computer_description", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Restart Windows Explorer.
/// </summary>
@@ -691,7 +646,7 @@ namespace Microsoft.CmdPal.Ext.System {
}
/// <summary>
/// Looks up a localized string similar to Shutdown.
/// Looks up a localized string similar to Shutdown computer.
/// </summary>
public static string Microsoft_plugin_sys_shutdown_computer {
get {
@@ -709,16 +664,7 @@ namespace Microsoft.CmdPal.Ext.System {
}
/// <summary>
/// Looks up a localized string similar to Shutdown computer.
/// </summary>
public static string Microsoft_plugin_sys_shutdown_computer_description {
get {
return ResourceManager.GetString("Microsoft_plugin_sys_shutdown_computer_description", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Sign out.
/// Looks up a localized string similar to Sign out of computer.
/// </summary>
public static string Microsoft_plugin_sys_sign_out {
get {
@@ -736,16 +682,7 @@ namespace Microsoft.CmdPal.Ext.System {
}
/// <summary>
/// Looks up a localized string similar to Sign out of computer.
/// </summary>
public static string Microsoft_plugin_sys_sign_out_description {
get {
return ResourceManager.GetString("Microsoft_plugin_sys_sign_out_description", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Sleep.
/// Looks up a localized string similar to Put computer to sleep.
/// </summary>
public static string Microsoft_plugin_sys_sleep {
get {
@@ -762,15 +699,6 @@ namespace Microsoft.CmdPal.Ext.System {
}
}
/// <summary>
/// Looks up a localized string similar to Put computer to sleep.
/// </summary>
public static string Microsoft_plugin_sys_sleep_description {
get {
return ResourceManager.GetString("Microsoft_plugin_sys_sleep_description", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Speed.
/// </summary>

View File

@@ -199,17 +199,13 @@
<comment>Abbreviation of 'Gbits per seconds'. Don't translate the placeholder '{0}' as it is replaced in code.</comment>
</data>
<data name="Microsoft_plugin_sys_hibernate" xml:space="preserve">
<value>Hibernate</value>
<value>Hibernate computer</value>
<comment>This should align to the action in Windows of a hibernating your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_hibernate_confirmation" xml:space="preserve">
<value>You are about to put this computer into hibernation, are you sure?</value>
<comment>This should align to the action in Windows of a hibernating your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_hibernate_description" xml:space="preserve">
<value>Hibernate computer</value>
<comment>This should align to the action in Windows of a hibernating your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_Ip4Address" xml:space="preserve">
<value>IPv4 address</value>
</data>
@@ -240,17 +236,13 @@
<comment>Don't translate the placeholder '{0}' as it is replaced in code.</comment>
</data>
<data name="Microsoft_plugin_sys_lock" xml:space="preserve">
<value>Lock</value>
<value>Lock computer</value>
<comment>This should align to the action in Windows of a locking your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_lock_confirmation" xml:space="preserve">
<value>You are about to lock this computer, are you sure?</value>
<comment>This should align to the action in Windows of a locking your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_lock_description" xml:space="preserve">
<value>Lock computer</value>
<comment>This should align to the action in Windows of a locking your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_Loopback" xml:space="preserve">
<value>Loopback</value>
</data>
@@ -280,10 +272,6 @@
<value>Empty Recycle Bin</value>
<comment>This should align to the action in Windows of emptying the recycle bin on your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_RecycleBinEmpty_description" xml:space="preserve">
<value>Empty Recycle Bin</value>
<comment>This should align to the action in Windows of emptying the recycle bin on your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_RecycleBinOpen" xml:space="preserve">
<value>Open Recycle Bin</value>
<comment>Means the recycle bin folder in Explorer.</comment>
@@ -292,10 +280,6 @@
<value>Empty Recycle Bin (Shift+Delete)</value>
<comment>This should align to the action in Windows of emptying the recycle bin on your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_RecycleBin_description" xml:space="preserve">
<value>Open the Recycle Bin</value>
<comment>This should align to the action in Windows of emptying the recycle bin on your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_RecycleBin_EmptySuccessMessage" xml:space="preserve">
<value>Recycle Bin emptied successfully.</value>
<comment>Means the recycle bin folder in Explorer.</comment>
@@ -323,57 +307,41 @@
<comment>Means the recycle bin folder in Explorer and "emptying" refers to "Empty Recycle Bin" command.</comment>
</data>
<data name="Microsoft_plugin_sys_restart_computer" xml:space="preserve">
<value>Restart</value>
<value>Restart computer</value>
<comment>This should align to the action in Windows of a restarting your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_restart_computer_confirmation" xml:space="preserve">
<value>You are about to restart this computer. Are you sure?</value>
<comment>This should align to the action in Windows of a restarting your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_restart_computer_description" xml:space="preserve">
<value>Restart computer</value>
<comment>This should align to the action in Windows of a restarting your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_Search_NetworkKeywordList" xml:space="preserve">
<value>ip; mac; address</value>
<comment>Translate 'ip' as 'ip' and not as 'ip address'. Same for 'mac'.)</comment>
</data>
<data name="Microsoft_plugin_sys_shutdown_computer" xml:space="preserve">
<value>Shutdown</value>
<value>Shutdown computer</value>
<comment>This should align to the action in Windows of a shutting down your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_shutdown_computer_confirmation" xml:space="preserve">
<value>You are about to shut down this computer, are you sure?</value>
<comment>This should align to the action in Windows of a shutting down your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_shutdown_computer_description" xml:space="preserve">
<value>Shutdown computer</value>
<comment>This should align to the action in Windows of a shutting down your computer.</comment>
</data>
<data name="Microsoft_plugin_sys_sign_out" xml:space="preserve">
<value>Sign out</value>
<value>Sign out of computer</value>
<comment>This should align to the action in windows of a signing out back to the lock screen.</comment>
</data>
<data name="Microsoft_plugin_sys_sign_out_confirmation" xml:space="preserve">
<value>You are about to sign out of this computer, are you sure?</value>
<comment>This should align to the action in windows of a signing out back to the lock screen.</comment>
</data>
<data name="Microsoft_plugin_sys_sign_out_description" xml:space="preserve">
<value>Sign out of computer</value>
<comment>This should align to the action in windows of a signing out back to the lock screen.</comment>
</data>
<data name="Microsoft_plugin_sys_sleep" xml:space="preserve">
<value>Sleep</value>
<value>Put computer to sleep</value>
<comment>This should align to the action in Windows of a making your computer go to sleep.</comment>
</data>
<data name="Microsoft_plugin_sys_sleep_confirmation" xml:space="preserve">
<value>You are about to put this computer to sleep, are you sure?</value>
<comment>This should align to the action in Windows of a making your computer go to sleep.</comment>
</data>
<data name="Microsoft_plugin_sys_sleep_description" xml:space="preserve">
<value>Put computer to sleep</value>
<comment>This should align to the action in Windows of a making your computer go to sleep.</comment>
</data>
<data name="Microsoft_plugin_sys_Speed" xml:space="preserve">
<value>Speed</value>
</data>

View File

@@ -19,7 +19,7 @@ namespace Microsoft.CmdPal.Ext.WinGet.Properties {
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "18.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Resources {
@@ -124,7 +124,7 @@ namespace Microsoft.CmdPal.Ext.WinGet.Properties {
}
/// <summary>
/// Looks up a localized string similar to Add Command Palette extensions from WinGet.
/// Looks up a localized string similar to Find Command Palette extensions from WinGet.
/// </summary>
public static string winget_install_extensions_title {
get {
@@ -259,7 +259,7 @@ namespace Microsoft.CmdPal.Ext.WinGet.Properties {
}
/// <summary>
/// Looks up a localized string similar to Add Command Palette extensions from the Microsoft Store.
/// Looks up a localized string similar to Find Command Palette extensions from the Microsoft Store.
/// </summary>
public static string winget_search_store_title {
get {

View File

@@ -127,11 +127,11 @@
<comment></comment>
</data>
<data name="winget_install_extensions_title" xml:space="preserve">
<value>Add Command Palette extensions from WinGet</value>
<value>Find Command Palette extensions from WinGet</value>
<comment></comment>
</data>
<data name="winget_search_store_title" xml:space="preserve">
<value>Add Command Palette extensions from the Microsoft Store</value>
<value>Find Command Palette extensions from the Microsoft Store</value>
<comment></comment>
</data>
<data name="winget_page_name" xml:space="preserve">