Skip to content

Add WiX support to OneLocBuild#10383

Merged
jonfortescue merged 6 commits intodotnet:mainfrom
jonfortescue:OneLocBuildWix
Aug 12, 2022
Merged

Add WiX support to OneLocBuild#10383
jonfortescue merged 6 commits intodotnet:mainfrom
jonfortescue:OneLocBuildWix

Conversation

@jonfortescue
Copy link
Copy Markdown
Contributor

@jonfortescue jonfortescue commented Aug 10, 2022

Makes the generate-locprojectjson script pick up wxl files for WiX localization. Example of the generated locproject.json here. Sample PR here.

Closes #10298.

@jonfortescue jonfortescue self-assigned this Aug 10, 2022
dougbu
dougbu previously approved these changes Aug 10, 2022
Copy link
Copy Markdown
Contributor

@dougbu dougbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sample project looks good 🎉

)
},
@{
LanguageSet = "cs-CZ;de-DE;es-ES;fr-FR;it-IT;ja-JP;ko-KR;pl-PL;pt-BR;ru-RU;tr-TR;zh-CN;zh-TW"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonfortescue
Copy link
Copy Markdown
Contributor Author

@dougbu here's a sample PR it opened to aspnetcore.

@dougbu
Copy link
Copy Markdown
Contributor

dougbu commented Aug 10, 2022

@dougbu here's a sample PR it opened to aspnetcore.

Looks like we need to add exclusions to avoid e.g. https://github.com/dotnet/aspnetcore/blob/afd459e52b8239fa819bf52bcd35c3da72042eeb/src/Installers/Windows/AspNetCoreModule-Setup/setupstrings.wxl. According to a @joeloff, we only want / need to localize the hosting bundle installers. Could you remind me of the exclusion syntax❔


Separately, what's the best way to inform the loc team that the repo already contains translations for most of the strings (the case in all repos I looked at)❔ /cc @vlada-shubina @cristianosuzuki77

@joeloff
Copy link
Copy Markdown
Member

joeloff commented Aug 11, 2022

@dougbu did I really say we only care about the hosting bundle? ASP.NET is building separate bundles for just the runtime as I recall, and we have the SDK/desktop/runtime bundles too

@dougbu
Copy link
Copy Markdown
Contributor

dougbu commented Aug 11, 2022

Sorry @joeloff, I should have emphasized the word "bundle" rather than "hosting". That's the gist of what you said and our hosting bundle was an example.

@jonfortescue the overall point here is we have WXL files that aren't worth localization.

@dougbu
Copy link
Copy Markdown
Contributor

dougbu commented Aug 11, 2022

Curious: Will the Test XHarness SDK Apple_Simulators Build_Debug job likely pass on retry❔ Or does the Right Thing:tm: require #10380 i.e. a full validation run❔

@MattGal
Copy link
Copy Markdown
Member

MattGal commented Aug 11, 2022

Curious: Will the Test XHarness SDK Apple_Simulators Build_Debug job likely pass on retry❔ Or does the Right Thing™️ require #10380 i.e. a full validation run❔

Xharness flakiness is unfortunately just a sign of flaky on-prem devices, unless you're touching the XHarness SDK you should comfortably ignore failures and retry, letting us know if it's persistently failing (because this usually means a machine gone bad)

@jonfortescue
Copy link
Copy Markdown
Contributor Author

Given everything here is passing and seems to be working, I'm merging.

@jonfortescue jonfortescue merged commit 80d8d02 into dotnet:main Aug 12, 2022
@jonfortescue jonfortescue deleted the OneLocBuildWix branch August 12, 2022 00:13
dougbu added a commit to dotnet/aspnetcore that referenced this pull request Aug 12, 2022
* Exclude some .wxl files from localization
- preparing for dotnet/arcade#10383 merge and migration to this repo
- without this, `OneLocBuild` will generate multiple unused translation files

* !fixup! Correct JSON syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add WiX localization to the OneLocBuild template/script

6 participants