From 0407a5b4fedbd40f5241c856f3c874f27e5eec32 Mon Sep 17 00:00:00 2001 From: Makoto Sakaguchi Date: Tue, 11 Aug 2026 15:00:24 +0900 Subject: [PATCH] FileLocksmith: Fix context menu items are not localized (#49606) ## Summary of the Pull Request Fixing the issue where Windows 11 context menu items are not localized. ## PR Checklist - [x] Closes: #37271 (Localized part ONLY) - [ ] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [x] **Tests:** Added/updated and all pass - [x] **Localization:** All end-user-facing strings can be localized - [x] **Dev docs:** No documentation changes are required for project configuration fixes - [x] **New binaries:** No new binaries are added - [x] **Documentation updated:** No user documentation changes are required ## Detailed Description of the Pull Request / Additional comments Reorganize resource items for the `FileLocksmithContextMenu` project - Mark `resource.base.h` as a non-compiled `None` - Add `Generated Files/resource.h` as a `ClInclude` - Mark `FileLocksmithContextMenu.base.rc`as a non-compiled `None` - Add `Generated Files/FileLocksmithContextMenu.rc` as a `ResourceCompile` Update the `.vcxproj.filters` accordingly to reflect the new locations and filters for header and resource files. before Before after After Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7b3fb20d-6e9d-4fef-a5cd-f8921d28c220 ## Validation Steps Performed --- .../FileLocksmithContextMenu.vcxproj | 10 ++++++---- .../FileLocksmithContextMenu.vcxproj.filters | 10 ++++++++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj b/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj index 2a55f04651..0dd23284e5 100644 --- a/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj +++ b/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj @@ -86,7 +86,8 @@ MakeAppx.exe pack /d . /p $(OutDir)FileLocksmithContextMenuPackage.msix /nv - + + @@ -98,6 +99,10 @@ MakeAppx.exe pack /d . /p $(OutDir)FileLocksmithContextMenuPackage.msix /nv + + + + PreserveNewest @@ -138,9 +143,6 @@ MakeAppx.exe pack /d . /p $(OutDir)FileLocksmithContextMenuPackage.msix /nv{9d52fd25-ef90-4f9a-a015-91efc5daf54f} - - - diff --git a/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj.filters b/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj.filters index 6646b4fc10..36fbd96ab4 100644 --- a/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj.filters +++ b/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj.filters @@ -22,7 +22,7 @@ Header Files - + Header Files @@ -63,9 +63,15 @@ Resource Files + + Header Files + + + Resource Files + - + Resource Files