[PR #16380] No longer split the strings in the resource file #30908

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

Original Pull Request: https://github.com/microsoft/terminal/pull/16380

State: closed
Merged: Yes


Summary of the Pull Request

Instead of splitting up the resource strings in the resource file (which will cause localization issues), we now use resource strings with placeholders.

Unfortunately, we still need to split the string to bind to xaml correctly since only part of the string should be hyperlinked. We do this in the code-behind, with the help of a helper function SplitResourceStringWithPlaceholders. Reviewers should start by looking at that function.

Validation Steps Performed

Hyperlinked text shows up as expected

PR Checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated
    • If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated (if necessary)
**Original Pull Request:** https://github.com/microsoft/terminal/pull/16380 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Instead of splitting up the resource strings in the resource file (which will cause localization issues), we now use resource strings with placeholders. Unfortunately, we still need to split the string to bind to xaml correctly since only part of the string should be hyperlinked. We do this in the code-behind, with the help of a helper function `SplitResourceStringWithPlaceholders`. Reviewers should start by looking at that function. ## Validation Steps Performed Hyperlinked text shows up as expected ## PR Checklist - [ ] Closes #xxx - [ ] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:43:45 +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#30908