[PR #10446] [MERGED] Localize the shell extension's menu item #28058

Open
opened 2026-01-31 09:26:03 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10446
Author: @DHowett
Created: 6/17/2021
Status: Merged
Merged: 6/17/2021
Merged by: @undefined

Base: mainHead: dev/duhowett/localize-shex


📝 Commits (1)

  • 76176f6 Localize the shell extension menu item

📊 Changes

3 files changed (+30 additions, -6 deletions)

View changed files

📝 src/cascadia/ShellExtension/OpenTerminalHere.cpp (+12 -5)
📝 src/cascadia/ShellExtension/dllmain.cpp (+5 -0)
📝 src/cascadia/TerminalApp/Resources/en-US/Resources.resw (+13 -1)

📄 Description

This commit introduces localization for the "Open in Windows Terminal"
menu item and differentiates it based on compile-time branding (rather
than runtime detection!).

@leonMSFT's tray icon pull request had the excellent idea to use the
TerminalApp's resource compartment for auxiliary resources for projects
that can't otherwise be localized the same way. Doing localization in
the shell extension (or WindowsTerminal.exe) would require us to use
MUIRCT and split the build process up to support mui files. That's a
huge amount of work... but this is not a huge amount of work.

Fixes #6112


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/10446 **Author:** [@DHowett](https://github.com/DHowett) **Created:** 6/17/2021 **Status:** ✅ Merged **Merged:** 6/17/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/duhowett/localize-shex` --- ### 📝 Commits (1) - [`76176f6`](https://github.com/microsoft/terminal/commit/76176f6b2b2c8e0ba457a969a57dcd5e684ca57d) Localize the shell extension menu item ### 📊 Changes **3 files changed** (+30 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/ShellExtension/OpenTerminalHere.cpp` (+12 -5) 📝 `src/cascadia/ShellExtension/dllmain.cpp` (+5 -0) 📝 `src/cascadia/TerminalApp/Resources/en-US/Resources.resw` (+13 -1) </details> ### 📄 Description This commit introduces localization for the "Open in Windows Terminal" menu item and differentiates it based on compile-time branding (rather than runtime detection!). @leonMSFT's tray icon pull request had the excellent idea to use the TerminalApp's resource compartment for auxiliary resources for projects that can't otherwise be localized the same way. Doing localization in the shell extension (or WindowsTerminal.exe) would require us to use MUIRCT and split the build process up to support mui files. That's a huge amount of work... but this is *not* a huge amount of work. Fixes #6112 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:26:03 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28058