mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
[CmdPal] Extension Toolkit localization (#40677)
## Summary of the Pull Request Moves hardcoded string resources from the extension toolkit to a new `Resources.resx` file. ## PR Checklist - [x] **Closes:** #40397 - [ ] **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 - [x] **Localization:** All end-user-facing strings can be localized - [x] **Dev docs:** No need - [x] **New binaries:** None - [x] **Documentation updated:** No need ## Detailed Description of the Pull Request / Additional comments `Resources.resx` and `Resources.Designer.cs` are located in `Properties\`, as with other projects. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Tested locally, strings display correctly
This commit is contained in:
@@ -116,7 +116,7 @@ public sealed partial class Settings : ICommandSettings
|
||||
public SettingsContentPage(Settings settings)
|
||||
{
|
||||
_settings = settings;
|
||||
Name = "Settings";
|
||||
Name = Properties.Resources.Settings;
|
||||
Icon = new IconInfo("\uE713"); // Settings icon
|
||||
|
||||
// When our settings change, make sure to let CmdPal know to
|
||||
|
||||
Reference in New Issue
Block a user