Repository navigation
Check the localizations into the project nightly #16835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
34261dd
b723aaf
a69f569
e544692
f719185
db0fb14
e745011
a545a2e
26a90b1
852354a
88bddb7
3ba5838
77cb4c3
7f7a73d
1135e66
f639909
f0168ad
083b052
18967d1
c7a2ec1
b40f738
f067b54
914ac8c
ae8c38f
a3b99e3
e00f944
806c6f9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ changelog | |
| clickable | ||
| clig | ||
| CMMI | ||
| consvc | ||
| copyable | ||
| Counterintuitively | ||
| CtrlDToClose | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -126,3 +126,4 @@ | |
| ^tools/ReleaseEngineering/ServicingPipeline\.ps1$ | ||
| ^XamlStyler\.json$ | ||
| ignore$ | ||
| Resources/(?!en) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,6 +74,7 @@ aumid | |
| Authenticode | ||
| AUTOBUDDY | ||
| AUTOCHECKBOX | ||
| autocrlf | ||
| autohide | ||
| AUTOHSCROLL | ||
| automagically | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,11 +10,12 @@ $LocalizationsFromContextMenu | ForEach-Object { | |
| ForEach ($pair in $Languages.GetEnumerator()) { | ||
| $LanguageDir = "./src/cascadia/CascadiaPackage/Resources/$($pair.Key)" | ||
| $ResPath = "$LanguageDir/Resources.resw" | ||
| $XmlDocument = $null | ||
| $PreexistingResw = Get-Item $ResPath -EA:Ignore | ||
| If ($null -eq $PreexistingResw) { | ||
| Write-Host "Copying $($pair.Value.FullName) to $ResPath" | ||
| $XmlDocument = [xml](Get-Content $pair.Value.FullName) | ||
| New-Item -type Directory $LanguageDir -EA:Ignore | ||
| Copy-Item $pair.Value.FullName $ResPath | ||
| } Else { | ||
| # Merge Them! | ||
| Write-Host "Merging $($pair.Value.FullName) into $ResPath" | ||
|
|
@@ -29,6 +30,19 @@ ForEach ($pair in $Languages.GetEnumerator()) { | |
| $newXml.root.data | % { | ||
| $null = $existingXml.root.AppendChild($existingXml.ImportNode($_, $true)) | ||
| } | ||
| $existingXml.Save($PreexistingResw.FullName) | ||
| $XmlDocument = $existingXml # (which has been updated) | ||
| } | ||
|
|
||
| # Reset paths to be absolute (for .NET) | ||
| $LanguageDir = (Get-Item $LanguageDir).FullName | ||
|
Comment on lines
+36
to
+37
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That would probably work as well. |
||
| $ResPath = "$LanguageDir/Resources.resw" | ||
| # Force the "new" and "preexisting" paths to serialize with XmlWriter, | ||
| # to ensure consistency. | ||
| $writerSettings = [System.Xml.XmlWriterSettings]::new() | ||
| $writerSettings.NewLineChars = "`r`n" | ||
| $writerSettings.Indent = $true | ||
| $writer = [System.Xml.XmlWriter]::Create($ResPath, $writerSettings) | ||
| $XmlDocument.Save($writer) | ||
| $writer.Flush() | ||
| $writer.Close() | ||
|
Comment on lines
+41
to
+47
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you look on the red side of the diff, I removed exactly that code 😄 I was seeing cases where it saved some lines with
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I didn't even notice that. |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file changed because we no longer run the script before every build... so it's gotta be finalized. |
||
| <root> | ||
| <!-- | ||
| Microsoft ResX Schema | ||
|
|
@@ -119,66 +119,80 @@ | |
| </resheader> | ||
| <data name="AppName" xml:space="preserve"> | ||
| <value>Terminal</value> | ||
| <comment>{Locked}</comment> | ||
| <comment>{Locked=qps-ploc,qps-ploca,qps-plocm}</comment> | ||
| </data> | ||
| <data name="AppNameDev" xml:space="preserve"> | ||
| <value>Terminal Dev</value> | ||
| <comment>{Locked}</comment> | ||
| <comment>{Locked} The dev build will never be seen in multiple languages</comment> | ||
| </data> | ||
| <data name="AppNameCan" xml:space="preserve"> | ||
| <value>Terminal Canary</value> | ||
| <comment>{Locked}</comment> | ||
| <comment>{Locked=qps-ploc,qps-ploca,qps-plocm}</comment> | ||
| </data> | ||
| <data name="AppNamePre" xml:space="preserve"> | ||
| <value>Terminal Preview</value> | ||
| <comment>{Locked}</comment> | ||
| <comment>{Locked=qps-ploc,qps-ploca,qps-plocm}</comment> | ||
| </data> | ||
| <data name="AppStoreName" xml:space="preserve"> | ||
| <value>Windows Terminal</value> | ||
| <comment>{Locked}</comment> | ||
| <comment>{Locked=qps-ploc,qps-ploca,qps-plocm}</comment> | ||
| </data> | ||
| <data name="AppStoreNameDev" xml:space="preserve"> | ||
| <value>Windows Terminal Dev</value> | ||
| <comment>{Locked}</comment> | ||
| <comment>{Locked} The dev build will never be seen in multiple languages</comment> | ||
| </data> | ||
| <data name="AppStoreNameCan" xml:space="preserve"> | ||
| <value>Windows Terminal Canary</value> | ||
| <comment>{Locked}</comment> | ||
| <comment>{Locked=qps-ploc,qps-ploca,qps-plocm}. "Canary" in this context means an unstable or nightly build of a software product, not the bird.</comment> | ||
| </data> | ||
| <data name="AppStoreNamePre" xml:space="preserve"> | ||
| <value>Windows Terminal Preview</value> | ||
| <comment>{Locked}</comment> | ||
| <comment>{Locked=qps-ploc,qps-ploca,qps-plocm}</comment> | ||
| </data> | ||
| <data name="AppShortName" xml:space="preserve"> | ||
| <value>Terminal</value> | ||
| <comment>{Locked}</comment> | ||
| <comment>{Locked=qps-ploc,qps-ploca,qps-plocm}</comment> | ||
| </data> | ||
| <data name="AppShortNameDev" xml:space="preserve"> | ||
| <value>Terminal Dev</value> | ||
| <comment>{Locked}</comment> | ||
| <comment>{Locked} The dev build will never be seen in multiple languages</comment> | ||
| </data> | ||
| <data name="AppShortNameCan" xml:space="preserve"> | ||
| <value>Terminal Canary</value> | ||
| <comment>{Locked}</comment> | ||
| <comment>{Locked=qps-ploc,qps-ploca,qps-plocm}</comment> | ||
| </data> | ||
| <data name="AppShortNamePre" xml:space="preserve"> | ||
| <value>Terminal Preview</value> | ||
| <comment>{Locked}</comment> | ||
| <comment>{Locked=qps-ploc,qps-ploca,qps-plocm}</comment> | ||
| </data> | ||
| <data name="AppDescription" xml:space="preserve"> | ||
| <value>The New Windows Terminal</value> | ||
| <comment>{Locked}</comment> | ||
| </data> | ||
| <data name="AppDescriptionDev" xml:space="preserve"> | ||
| <value>The Windows Terminal, but Unofficial</value> | ||
| <comment>{Locked}</comment> | ||
| <comment>{Locked} The dev build will never be seen in multiple languages</comment> | ||
| </data> | ||
| <data name="AppDescriptionCan" xml:space="preserve"> | ||
| <value>The Windows Terminal (Canary build)</value> | ||
| <comment>{Locked}</comment> | ||
| </data> | ||
| <data name="AppDescriptionPre" xml:space="preserve"> | ||
| <value>Windows Terminal with a preview of upcoming features</value> | ||
| <comment>{Locked}</comment> | ||
| </data> | ||
| </root> | ||
| <data name="ShellExtension_OpenInTerminalMenuItem_Dev" xml:space="preserve"> | ||
| <value>Open in Terminal (&Dev)</value> | ||
| <comment>{Locked} The dev build will never be seen in multiple languages</comment> | ||
| </data> | ||
| <data name="ShellExtension_OpenInTerminalMenuItem_Canary" xml:space="preserve"> | ||
| <value>Open in Terminal (&Canary)</value> | ||
| <comment>This is a menu item that will be displayed in the Windows File Explorer that launches the Canary version of Windows Terminal. Please mark one of the characters to be an accelerator key.</comment> | ||
| </data> | ||
| <data name="ShellExtension_OpenInTerminalMenuItem_Preview" xml:space="preserve"> | ||
| <value>Open in Terminal &Preview</value> | ||
| <comment>This is a menu item that will be displayed in the Windows File Explorer that launches the Preview version of Windows Terminal. Please mark one of the characters to be an accelerator key.</comment> | ||
| </data> | ||
| <data name="ShellExtension_OpenInTerminalMenuItem" xml:space="preserve"> | ||
| <value>Open in &Terminal</value> | ||
| <comment>This is a menu item that will be displayed in the Windows File Explorer that launches the non-preview version of Windows Terminal. Please mark one of the characters to be an accelerator key.</comment> | ||
| </data> | ||
| </root> | ||
Uh oh!
There was an error while loading. Please reload this page.