Repository navigation
Restore PackagedApp localization units removed by stale OneLoc update - #11855
Conversation
… update Regenerate all 13 catalogs using the owning project UpdateXlf target. This restores TestCaseFilterOptionDescription without changing existing translations and fixes the Windows and Linux failures in main build 20261009.1 (3100512). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 35759180-1b9e-4dd3-bd06-83fa9a1b465e
There was a problem hiding this comment.
Note
🤖 Automated review by GitHub Copilot. Generated by the Expert Code Review workflow. To request a follow-up action, reply by tagging @copilot directly.
Review outcome: No actionable findings — this is a clean, mechanical restoration of a localization unit accidentally dropped by a stale OneLoc update.
Change classification
- Localization catalogs only: 13
ExtensionResources.*.xlffiles undersrc/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/each gain one identical<trans-unit id="TestCaseFilterOptionDescription">block (65 additions, 0 deletions, no other content touched).
Confidence at a glance
🟢 Localization — restoration verified against source of truth, verbatim across all 13 catalogs
- Why it applies: All changed files are
.xlfcatalogs; dimension 9 (Localization & Resources) applies directly. - Evidence:
TestCaseFilterOptionDescriptionexists inExtensionResources.resxwith identical<value>text and the same{Locked="(learn.microsoft.com/redacted) comment;PackagedAppControllerFilterCommandLineOptionsProvider.csreferencesExtensionResources.TestCaseFilterOptionDescription, confirming the id isn't a typo/mismatch of a similarly named resource. The locked URL token occurs verbatim in/and, being a full URL, cannot collide with a substring of another translatable word. All 13 locale files received the exact same unit withstate="new"(correctly untranslated, since OneLoc hasn't translated it for any locale yet) and matching. Diff is additions-only, inserted directly before, with no reordering or modification of any pre-existing. XML parses cleanly on all 13 files at HEAD (validated withxml.etree.ElementTree`), and the "no newline at EOF" convention is unchanged between base and head (byte-identical trailing bytes). - Gap or disposition: None. The PR's own validation (build pass,
check_localization.pyacross all 364 catalogs, idempotentUpdateXlf) is consistent with the diff shape and plausible for this narrow a fix; I did not re-run CI but found nothing contradicting those claims. - Action: None.
⚪ Not applicable: Correctness & design (no logic changed), Concurrency & lifecycle, Security & protocol, API & compatibility, Performance, Tests, Analyzers, Build/dependencies/scripts (no source, resx, csproj, or non-xlf file touched).
There was a problem hiding this comment.
🟢 Approval recommended
The generated units match the neutral resource, and all 364 localization catalogs pass validation.
0 open findings
What changed in this PR
Restores the generated PackagedApp localization unit removed by a stale OneLoc update.
Changes:
- Re-adds
TestCaseFilterOptionDescriptionto all 13 locale catalogs. - Preserves the neutral text and locked documentation URL.
| File | Description |
|---|---|
ExtensionResources.cs.xlf |
Restores Czech unit. |
ExtensionResources.de.xlf |
Restores German unit. |
ExtensionResources.es.xlf |
Restores Spanish unit. |
ExtensionResources.fr.xlf |
Restores French unit. |
ExtensionResources.it.xlf |
Restores Italian unit. |
ExtensionResources.ja.xlf |
Restores Japanese unit. |
ExtensionResources.ko.xlf |
Restores Korean unit. |
ExtensionResources.pl.xlf |
Restores Polish unit. |
ExtensionResources.pt-BR.xlf |
Restores Brazilian Portuguese unit. |
ExtensionResources.ru.xlf |
Restores Russian unit. |
ExtensionResources.tr.xlf |
Restores Turkish unit. |
ExtensionResources.zh-Hans.xlf |
Restores Simplified Chinese unit. |
ExtensionResources.zh-Hant.xlf |
Restores Traditional Chinese unit. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Fixes the Windows and Linux build failures in main pipeline run 20261009.1. The stale OneLoc update in #11839 removed
TestCaseFilterOptionDescriptionfrom all 13 PackagedApp catalogs, although #11805 had correctly generated those units.Regenerated the catalogs through the owning project's
UpdateXlftarget. This restores only the missing units (65 added lines), preserves existing translations, and does not change runtime behavior or relax CI's localization checks.Validation
.\.dotnet\dotnet.exe build src\Platform\Microsoft.Testing.Extensions.PackagedApp\Microsoft.Testing.Extensions.PackagedApp.csproj -c Release --no-restore /p:UpdateXlfOnBuild=false -bl:artifacts\log\Release\PackagedApp-Validation.binlog -v:minimal -m- passed all four target frameworks, with zero warnings and errors.python .github\scripts\test_check_localization.py- passed all 41 tests.python .github\scripts\check_localization.py- all 364 catalogs passed.UpdateXlfwas byte-for-byte idempotent;git diff --checkpassed.Validation was performed locally on Windows. The full solution, Linux build, and remote pipeline have not been rerun.