-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into dev/migrie/s/3327-xam…
…l-theming
- Loading branch information
Showing
62 changed files
with
408 additions
and
422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"Branch": [ | ||
{ | ||
"collection": "microsoft", | ||
"project": "OS", | ||
"repo": "os.2020", | ||
"name": "official/rs_wdx_dxp_windev", | ||
"workitem": "38106206", | ||
"CheckinFiles": [ | ||
{ | ||
"source": "WindowsTerminal.app.man", | ||
"path": "/redist/mspartners/ipa/WindowsTerminal", | ||
"type": "File" | ||
} | ||
] | ||
} | ||
], | ||
"Email": [ | ||
{ | ||
"sendTo": "condev", | ||
"sendOnErrorOnly": "False" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
build/scripts/Copy-ContextMenuResourcesToCascadiaPackage.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT license. | ||
|
||
$LocalizationsFromContextMenu = Get-ChildItem ./src/cascadia/TerminalApp/Resources -Recurse -Filter ContextMenu.resw | ||
$Languages = [System.Collections.HashTable]::New() | ||
$LocalizationsFromContextMenu | ForEach-Object { | ||
$Languages[$_.Directory.Name] = $_ | ||
} | ||
|
||
ForEach ($pair in $Languages.GetEnumerator()) { | ||
$LanguageDir = "./src/cascadia/CascadiaPackage/Resources/$($pair.Key)" | ||
$ResPath = "$LanguageDir/Resources.resw" | ||
$PreexistingResw = Get-Item $ResPath -EA:Ignore | ||
If ($null -eq $PreexistingResw) { | ||
Write-Host "Copying $($pair.Value.FullName) to $ResPath" | ||
New-Item -type Directory $LanguageDir -EA:Ignore | ||
Copy-Item $pair.Value.FullName $ResPath | ||
} Else { | ||
# Merge Them! | ||
Write-Host "Merging $($pair.Value.FullName) into $ResPath" | ||
$existingXml = [xml](Get-Content $PreexistingResw.FullName) | ||
$newXml = [xml](Get-Content $pair.Value.FullName) | ||
$newDataKeys = $newXml.root.data.name | ||
$existingXml.root.data | % { | ||
If ($_.name -in $newDataKeys) { | ||
$null = $existingXml.root.RemoveChild($_) | ||
} | ||
} | ||
$newXml.root.data | % { | ||
$null = $existingXml.root.AppendChild($existingXml.ImportNode($_, $true)) | ||
} | ||
$existingXml.Save($PreexistingResw.FullName) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
This comment was marked as resolved.
Sorry, something went wrong.